84% plinks

Code Review | Powie's pLinks PagePeeker

WordPress plugin Powie's pLinks PagePeeker scored 84% from 54 tests.

About plugin

  • Plugin page: plinks
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Feb 20, 2011
  • Latest release: Feb 28, 2021
  • Number of updates: 48
  • Update frequency: every 76.3 days
  • Top authors: PowieT (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.53ms] Passed 4 tests

Server-side resources used by Powie's pLinks PagePeeker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.88 ▼0.35
Dashboard /wp-admin3.31 ▲0.0143.13 ▼3.78
Posts /wp-admin/edit.php3.36 ▲0.0147.89 ▲1.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.08 ▲2.70
Media Library /wp-admin/upload.php3.24 ▲0.0132.32 ▲0.23
pLinks Setup /wp-admin/options-general.php?page=plinks/plinks_settings.php3.2630.48

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Powie's pLinks PagePeeker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.37 ▼1.381.77 ▼0.2143.95 ▼4.28
Dashboard /wp-admin2,212 ▲275.88 ▼0.0297.78 ▼6.7539.42 ▼3.29
Posts /wp-admin/edit.php2,092 ▼02.00 ▲0.0040.67 ▲4.8836.34 ▲5.05
Add New Post /wp-admin/post-new.php1,542 ▲1018.24 ▼5.08602.80 ▼68.8046.96 ▲0.80
Media Library /wp-admin/upload.php1,394 ▲64.25 ▲0.0295.92 ▼2.7545.55 ▲0.65
pLinks Setup /wp-admin/options-general.php?page=plinks/plinks_settings.php1,1633.5572.0150.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/plinks/plinks_settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/plinks/plinks.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: pagepeeker, links, blogroll, plugin, shortcode

plinks/plinks.php Passed 13 tests

The main file in "Powie's pLinks PagePeeker" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Link directory pageview with pagepeeker preview and shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin363 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File24856184
PHP22041176
CSS1113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin