84% wp-page-load-stats

Code Review | WP Page Load Stats

WordPress plugin WP Page Load Stats scored84%from 54 tests.

About plugin

  • Plugin page: wp-page-load-stats
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Jul 29, 2012
  • Latest release: Nov 26, 2015
  • Number of updates: 11
  • Update frequency: every 122.0 days
  • Top authors: mikejolley (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10+ active /9,486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WP Page Load Stats
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.19 ▼0.77
Dashboard /wp-admin3.32 ▼0.0253.87 ▼8.37
Posts /wp-admin/edit.php3.38 ▲0.0354.93 ▲5.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.16 ▼15.88
Media Library /wp-admin/upload.php3.25 ▲0.0240.18 ▲6.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
wp_pls_admin_load_times
widget_recent-posts
theysaidso_admin_options
wp_pls_load_times
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Page Load Stats
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12314.25 ▼0.032.04 ▲0.3639.77 ▲2.96
Dashboard /wp-admin2,224 ▲475.62 ▲0.0195.21 ▲3.7546.65 ▲4.92
Posts /wp-admin/edit.php2,135 ▲351.97 ▼0.0240.14 ▲1.9841.73 ▲9.89
Add New Post /wp-admin/post-new.php1,627 ▲9922.68 ▼0.36593.55 ▼32.6037.63 ▼11.52
Media Library /wp-admin/upload.php1,435 ▲354.14 ▼0.05104.55 ▼1.9949.15 ▲5.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-page-load-stats/wp-page-load-stats.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Stats shown in the footer)
The official readme.txt is a good inspiration

wp-page-load-stats/wp-page-load-stats.php Passed 13 tests

The main file in "WP Page Load Stats" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Display memory, page load time, average load time and query count in the footer. Requires PHP 5.2.0+

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2164984
CSS10053

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin