84% wp-pace

Code Review | WP Pace

WordPress plugin WP Pace scored84%from 54 tests.

About plugin

  • Plugin page: wp-pace
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2013
  • Latest release: Apr 28, 2014
  • Number of updates: 11
  • Update frequency: every 43.1 days
  • Top authors: jamesdbruner (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /5,825 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
This plugin's installer ran successfully

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

Server-side resources used by WP Pace
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.48 ▼5.20
Dashboard /wp-admin3.32 ▲0.0246.98 ▼1.17
Posts /wp-admin/edit.php3.37 ▲0.0239.88 ▼4.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.32 ▼8.03
Media Library /wp-admin/upload.php3.24 ▲0.0236.90 ▼2.91
Pace Settings /wp-admin/options-general.php?page=wp-pace/pace-options.php3.1929.22

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Pace
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲5314.68 ▲0.101.72 ▼0.1943.55 ▼0.89
Dashboard /wp-admin2,219 ▲385.80 ▲0.0997.20 ▼27.2843.59 ▼5.20
Posts /wp-admin/edit.php2,126 ▲262.44 ▲0.4436.45 ▲1.6933.24 ▼6.97
Add New Post /wp-admin/post-new.php1,552 ▲2423.26 ▲0.09667.87 ▲45.5736.40 ▼13.56
Media Library /wp-admin/upload.php1,421 ▲214.34 ▲0.14116.93 ▲17.6147.38 ▲5.35
Pace Settings /wp-admin/options-general.php?page=wp-pace/pace-options.php1,0202.5542.7025.27

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-pace/pace-options.php
    • > Notice in wp-content/plugins/wp-pace/pace-options.php+153
    Trying to access array offset on value of type bool

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
4 plugin tags: loading, loading animation, progress bar, pace

wp-pace/pace.php 85% from 13 tests

The primary PHP file in "WP Pace" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-pace.php" instead of "pace.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 457 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected222 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP46975211
CSS100010
JavaScript1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin