78% automatic-page-load-progress-bar

Code Review | Automatic Page Load Progress Bar

WordPress plugin Automatic Page Load Progress Bar scored78%from 54 tests.

About plugin

  • Plugin page: automatic-page-lo...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Apr 7, 2020
  • Latest release: Nov 24, 2020
  • Number of updates: 24
  • Update frequency: every 9.7 days
  • Top authors: atilbian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,040 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.68ms] Passed 4 tests

An overview of server-side resources used by Automatic Page Load Progress Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0644.94 ▲2.36
Dashboard /wp-admin3.35 ▲0.0549.10 ▼3.29
Posts /wp-admin/edit.php3.41 ▲0.0551.72 ▲0.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.96 ▼16.65
Media Library /wp-admin/upload.php3.28 ▲0.0536.83 ▲0.79
Automatic Page Load Progress Bar /wp-admin/options-general.php?page=aplpb3.2231.60

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: 14 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-posts
aplpb_option_checkbox_page
widget_recent-comments
aplpb_option_theme
widget_theysaidso_widget
aplpb_option_query_mobile
aplpb_option_color
aplpb_option_query_desktop
aplpb_option_query_tablet
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic Page Load Progress Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.37 ▼0.018.14 ▲6.2451.75 ▲4.60
Dashboard /wp-admin2,198 ▲185.56 ▼0.1288.12 ▼12.5139.73 ▼3.97
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0139.73 ▼2.0135.65 ▼3.30
Add New Post /wp-admin/post-new.php1,531 ▲323.11 ▼0.18668.51 ▲30.2254.97 ▲0.77
Media Library /wp-admin/upload.php1,406 ▲64.22 ▲0.06100.25 ▼4.5744.36 ▼1.84
Automatic Page Load Progress Bar /wp-admin/options-general.php?page=aplpb9652.0026.0427.79

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
The following items require your attention
  • The uninstall procedure has failed, leaving 14 options in the database
    • aplpb_option_checkbox_custom
    • aplpb_option_checkbox_page
    • aplpb_option_query_tablet
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • aplpb_option_query_mobile
    • widget_recent-posts
    • aplpb_option_checkbox_post
    • can_compress_scripts
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=aplpb
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=aplpb
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/automatic-page-load-progress-bar/automatic-page-load-progress-bar.php:216

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
These attributes need to be fixed:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

automatic-page-load-progress-bar/automatic-page-load-progress-bar.php Passed 13 tests

The main file in "Automatic Page Load Progress Bar" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Light and efficient extension to add a progress bar in less than a minute.

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
Good job! No executable or dangerous file extensions detected189 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12620177
CSS110011
JavaScript1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
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

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