10% pace-pro-epic-loading-progress-bar

Code Review | PACE Pro (EPIC Page Loading Progress Bar)

WordPress plugin PACE Pro (EPIC Page Loading Progress Bar) scored10%from 54 tests.

About plugin

  • Plugin page: pace-pro-epic-loa...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Dec 2, 2013
  • Latest release: May 21, 2016
  • Number of updates: 6
  • Update frequency: every 150.3 days
  • Top authors: AhmedGeek (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /5,870 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Error in wp-content/plugins/pace-pro-epic-loading-progress-bar/class/pacePro.core.php+68
    Uncaught Error: Using $this when not in object context in wp-content/plugins/pace-pro-epic-loading-progress-bar/class/pacePro.core.php:68
    Stack trace:
    #0 wp-content/plugins/pace-pro-epic-loading-progress-bar/class/pacePro.backbone.php(21): paceProCore::loadOptions()
    #1 wp-content/plugins/pace-pro-epic-loading-progress-bar/pace_main.php(31): pacePro->__construct()
    #2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

A check of server-side resources used by PACE Pro (EPIC Page Loading Progress Bar)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.21 ▼4.19
Dashboard /wp-admin3.31 ▼0.0450.58 ▼14.54
Posts /wp-admin/edit.php3.36 ▲0.0048.08 ▼2.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.47 ▼22.70
Media Library /wp-admin/upload.php3.23 ▲0.0038.14 ▲7.05

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for PACE Pro (EPIC Page Loading Progress Bar)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.34 ▼0.011.95 ▲0.1740.12 ▼2.07
Dashboard /wp-admin2,198 ▲215.59 ▼0.0290.15 ▲1.6341.94 ▼2.40
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0238.74 ▲1.0435.68 ▼1.81
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▼0.04648.88 ▼22.0646.45 ▼12.72
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.0199.20 ▲1.5741.92 ▼3.77

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
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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)
Even though no errors were found, 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pace-pro-epic-loading-progress-bar/pace_main.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'paceProCore' not found in wp-content/plugins/pace-pro-epic-loading-progress-bar/class/misc/pacePro.admin.layout.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: customization, progress, top, page, bar...

pace-pro-epic-loading-progress-bar/pace_main.php 92% from 13 tests

The entry point to "PACE Pro (EPIC Page Loading Progress Bar)" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("pace-pro-epic-loading-progress-bar.php" instead of "pace_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,466 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS148601,191
PHP597138243
JavaScript32132

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.67
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods853.33%
▷ Public methods15100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
22 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
class/misc/images/custom_rgb_r.png0.99KB0.74KB▼ 25.34%
class/misc/images/colorpicker_rgb_b.png0.95KB0.76KB▼ 19.48%
class/misc/images/custom_background.png1.87KB2.12KB0.00%
class/misc/images/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%
class/misc/images/colorpicker_rgb_g.png1.04KB0.83KB▼ 20.21%