Benchmarks
Plugin footprint Passed 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.57MB] [CPU: ▼296.01ms] Passed 4 tests
Analyzing server-side resources used by WP Rocket Footer JS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.63 | 59.02 ▲7.57 |
Dashboard /wp-admin | 3.97 ▲0.57 | 35.57 ▲1.84 |
Posts /wp-admin/edit.php | 4.20 ▲0.56 | 41.08 ▲4.06 |
Add New Post /wp-admin/post-new.php | 7.50 ▲0.53 | 108.24 ▼1,192.85 |
Media Library /wp-admin/upload.php | 3.92 ▲0.63 | 28.75 ▲2.92 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 184 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Rocket Footer JS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,776 ▲54 | 15.74 ▲0.12 | 5.72 ▼0.28 | 2.36 ▲0.15 |
Dashboard /wp-admin | 2,908 ▲47 | 6.08 ▼0.06 | 114.71 ▼24.05 | 155.17 ▼15.97 |
Posts /wp-admin/edit.php | 2,702 ▲8 | 3.24 ▲0.02 | 62.72 ▼1.97 | 137.14 ▼4.12 |
Add New Post /wp-admin/post-new.php | 1,669 ▼104 | 15.96 ▼6.17 | 432.36 ▼27.44 | 151.53 ▼4.05 |
Media Library /wp-admin/upload.php | 1,711 ▲10 | 5.46 ▼0.06 | 144.90 ▲2.88 | 189.28 ▲1.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 119× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Integration\\IntegrationAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Integration/GoogleMapsWidgetPRO.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Integration\\IntegrationAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Integration/Listify.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Integration\\IntegrationAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Integration/QcodeThemeFramework.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Integration\\IntegrationAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Integration/Tawkto.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Rewrite\\RewriteAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Rewrite/PingdomPrum.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Integration\\IntegrationAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Integration/RecaptchaInWPCommentsForm.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Lazyload\\LazyloadAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Lazyload/AmazonAds.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Integration\\IntegrationAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Integration/PressCoreThemeFramework.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Lazyload\\LazyloadAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Lazyload/QcodeGoogleMaps.php:9
- > PHP Fatal error
Uncaught Error: Class 'Rocket\\Footer\\JS\\Rewrite\\RewriteAbstract' not found in wp-content/plugins/rocket-footer-js/lib/Rocket/Footer/JS/Rewrite/PushCrew.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== rocket-footer-js ===
)
rocket-footer-js/rocket-footer-js.php Passed 13 tests
The main PHP script in "WP Rocket Footer JS" version 3.2.3 is automatically included on every request by WordPress
81 characters long description:
Unofficial WP-Rocket addon to force all JS both external and inline to the footer
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 plugin8,987 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 147 | 1,691 | 2,018 | 6,765 |
JavaScript | 17 | 391 | 482 | 1,808 |
JSON | 7 | 0 | 0 | 269 |
CSS | 2 | 21 | 2 | 145 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 2 | |
Traits | 4 | |
Classes | 132 | |
▷ Abstract classes | 9 | 6.82% |
▷ Concrete classes | 123 | 93.18% |
▷ Final classes | 0 | 0.00% |
Methods | 513 | |
▷ Static methods | 4 | 0.78% |
▷ Public methods | 342 | 66.67% |
▷ Protected methods | 141 | 27.49% |
▷ Private methods | 30 | 5.85% |
Functions | 31 | |
▷ Named functions | 16 | 51.61% |
▷ Anonymous functions | 15 | 48.39% |
Constants | 19 | |
▷ Global constants | 11 | 57.89% |
▷ Class constants | 8 | 42.11% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin