90% where-did-they-go-from-here

Code Review | WZ Followed Posts - Display what visitors are reading

WordPress plugin WZ Followed Posts - Display what visitors are reading scored90%from 54 tests.

About plugin

  • Plugin page: where-did-they-go...
  • Plugin version: 3.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2009
  • Latest release: Oct 3, 2023
  • Number of updates: 50
  • Update frequency: every 107.4 days
  • Top authors: Ajay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /40,906 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.87MB] [CPU: ▲3.83ms] Passed 4 tests

A check of server-side resources used by WZ Followed Posts - Display what visitors are reading
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4847.75 ▲8.89
Dashboard /wp-admin4.32 ▲0.9854.68 ▼5.02
Posts /wp-admin/edit.php4.38 ▲1.0251.08 ▲4.18
Add New Post /wp-admin/post-new.php6.93 ▲1.04100.35 ▲7.26
Media Library /wp-admin/upload.php4.25 ▲1.0248.23 ▲17.19
Followed Posts /wp-admin/options-general.php?page=wherego_options_page4.2961.19
WFP Tools /wp-admin/tools.php?page=wherego_tools_page4.1938.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_wherego_widget
wherego_settings
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WZ Followed Posts - Display what visitors are reading
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.34 ▼0.011.81 ▼0.1743.95 ▲5.65
Dashboard /wp-admin2,206 ▲345.66 ▼0.1784.81 ▼16.5538.66 ▼3.37
Posts /wp-admin/edit.php2,118 ▲211.97 ▼0.0433.57 ▼4.1034.56 ▲2.02
Add New Post /wp-admin/post-new.php6,417 ▲4,89127.15 ▲3.64822.92 ▲181.8659.67 ▲3.33
Media Library /wp-admin/upload.php1,408 ▲144.20 ▼0.0199.73 ▲0.0942.47 ▼0.20
Followed Posts /wp-admin/options-general.php?page=wherego_options_page2,2345.95139.5893.10
WFP Tools /wp-admin/tools.php?page=wherego_tools_page1,1152.0839.9131.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_wherego_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: followed posts, related posts, where did they go from here

where-did-they-go-from-here/where-did-they-go-from-here.php Passed 13 tests

Analyzing the main PHP file in "WZ Followed Posts - Display what visitors are reading" version 3.1.0
104 characters long description:
The best way to display posts followed by users a.k.a. "Readers who viewed this page, also viewed" links

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,018 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,0712,7503,742
PO File1211255551
JavaScript137361549
CSS210064
JSON10058
Markdown130046
XML1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity22.62
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes14.76%
Methods183
▷ Static methods7339.89%
▷ Public methods18198.91%
▷ Protected methods00.00%
▷ Private methods21.09%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/fb.png1.51KB1.59KB0.00%
includes/admin/images/paypal-donate.png4.27KB4.43KB0.00%
default.png4.22KB4.40KB0.00%