Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.66MB] [CPU: ▲16.22ms] Passed 4 tests
This is a short check of server-side resources used by WP Page Loading
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.16 ▲1.69 | 63.73 ▲20.87 |
Dashboard /wp-admin | 4.94 ▲1.64 | 78.27 ▲24.22 |
Posts /wp-admin/edit.php | 5.06 ▲1.70 | 63.98 ▲9.35 |
Add New Post /wp-admin/post-new.php | 7.58 ▲1.69 | 116.48 ▲13.70 |
Media Library /wp-admin/upload.php | 4.84 ▲1.61 | 57.57 ▲20.95 |
WP Loading Options /wp-admin/admin.php?page=wp_loading_page_options | 5.00 | 66.63 |
Server storage [IO: ▲22.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 481 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Page Loading
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,104 ▲343 | 18.14 ▲3.77 | 1.78 ▼0.16 | 38.66 ▼9.00 |
Dashboard /wp-admin | 2,495 ▲318 | 9.01 ▲3.36 | 168.39 ▲80.00 | 42.37 ▼4.11 |
Posts /wp-admin/edit.php | 2,426 ▲326 | 6.23 ▲4.25 | 84.14 ▲48.28 | 32.04 ▼8.16 |
Add New Post /wp-admin/post-new.php | 6,568 ▲5,042 | 26.94 ▲4.01 | 1,024.99 ▲338.52 | 40.74 ▼8.38 |
Media Library /wp-admin/upload.php | 1,563 ▲163 | 6.48 ▲2.31 | 115.10 ▲7.39 | 45.80 ▼3.22 |
WP Loading Options /wp-admin/admin.php?page=wp_loading_page_options | 1,958 | 7.65 | 250.83 | 28.94 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 112× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/core/Field/Complex_Field.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Contain_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/core/Field/Hidden_Field.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:15
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/core/Field/Gravity_Form_Field.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/templates/Container/widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Translator' not found in wp-content/plugins/wp-page-loading/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Array_Translator.php:10
- > PHP Fatal error
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 90% 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
7 plugin tags: loading, load, preload, wp loading, loader...
wp-page-loading/wp-loading-page.php 77% from 13 tests
The entry point to "WP Page Loading" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-page-loading.php" instead of "wp-loading-page.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected28,278 lines of code in 424 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 172 | 5,191 | 8,462 | 12,970 |
PHP | 149 | 2,639 | 6,636 | 9,107 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 48 | 339 | 0 | 1,769 |
CSS | 7 | 325 | 1,139 | 1,662 |
JSON | 19 | 0 | 0 | 500 |
Markdown | 3 | 24 | 0 | 68 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 124 | |
▷ Abstract classes | 11 | 8.87% |
▷ Concrete classes | 113 | 91.13% |
▷ Final classes | 1 | 0.88% |
Methods | 937 | |
▷ Static methods | 100 | 10.67% |
▷ Public methods | 759 | 81.00% |
▷ Protected methods | 165 | 17.61% |
▷ Private methods | 13 | 1.39% |
Functions | 102 | |
▷ Named functions | 21 | 20.59% |
▷ Anonymous functions | 81 | 79.41% |
Constants | 31 | |
▷ Global constants | 8 | 25.81% |
▷ Class constants | 23 | 74.19% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.45MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 40.92KB | 19.83KB | ▼ 51.53% |
assets/banner-772x250.png | 13.63KB | 6.98KB | ▼ 48.81% |
assets/banner-1544x500.png | 6.77KB | 3.36KB | ▼ 50.37% |
assets/icon-128x128.png | 1.57KB | 1.03KB | ▼ 34.80% |
assets/screenshot-2.png | 394.78KB | 159.57KB | ▼ 59.58% |