73% all-in-one-wp-preloader

Code Review | All-in-One WP Preloader

WordPress plugin All-in-One WP Preloader scored73%from 54 tests.

About plugin

  • Plugin page: all-in-one-wp-pre...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2021
  • Latest release: Dec 30, 2021
  • Number of updates: 4
  • Update frequency: every 5.8 days
  • Top authors: monzuralam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /772 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲1.38MB] [CPU: ▲7.02ms] Passed 4 tests

This is a short check of server-side resources used by All-in-One WP Preloader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.88 ▲1.4248.31 ▲7.88
Dashboard /wp-admin4.69 ▲1.3861.19 ▲6.96
Posts /wp-admin/edit.php4.74 ▲1.3859.86 ▲8.33
Add New Post /wp-admin/post-new.php7.28 ▲1.39102.15 ▲4.90
Media Library /wp-admin/upload.php4.58 ▲1.3545.99 ▲12.17

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 571 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for All-in-One WP Preloader
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,227 ▲49218.75 ▲4.476.07 ▲4.4439.99 ▼8.15
Dashboard /wp-admin2,490 ▲2999.26 ▲4.37182.99 ▲75.2041.17 ▼2.53
Posts /wp-admin/edit.php2,406 ▲3176.12 ▲4.1276.46 ▲37.3430.02 ▼4.93
Add New Post /wp-admin/post-new.php1,598 ▲6519.91 ▼3.23773.23 ▲127.6138.17 ▼18.70
Media Library /wp-admin/upload.php1,563 ▲1756.61 ▲2.40107.29 ▲9.4042.80 ▲1.19
All-in-One WP Preloader /wp-admin/crb_carbon_fields_container_all-in-one_wp_preloader.php260.440.0813.64

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 213× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/htmlburger/carbon-fields/core/Block.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/htmlburger/carbon-fields/templates/Container/post_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Comment_Meta_Container.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/all-in-one-wp-preloader/admin/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Scalar_Comparer.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/crb_carbon_fields_container_all-in-one_wp_preloader.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_all-in-one_wp_preloader.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: preloader, all-in-one-preloader, all-in-one, loader, wp-preloader

all-in-one-wp-preloader/all-in-one-wp-preloader.php Passed 13 tests

"All-in-One WP Preloader" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
133 characters long description:
All-in-One Preloader helps you to create awesome preloader that easy to customize, works on all major browsers and with any wp theme.

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
Success! There were no dangerous files found in this plugin30,377 lines of code in 516 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1735,2008,46612,970
PHP2482,8507,04810,786
PO File268191,0202,202
CSS93471,1511,822
Sass4833901,769
JSON500639
YAML3303118
Markdown426071

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.47
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces24
Interfaces5
Traits0
Classes222
▷ Abstract classes125.41%
▷ Concrete classes21094.59%
▷ Final classes10.48%
Methods996
▷ Static methods919.14%
▷ Public methods78378.61%
▷ Protected methods20220.28%
▷ Private methods111.10%
Functions116
▷ Named functions3025.86%
▷ Anonymous functions8674.14%
Constants37
▷ Global constants1027.03%
▷ Class constants2772.97%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/ai1wp.png9.66KB4.81KB▼ 50.21%