Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼9.34ms] Passed 4 tests
Analyzing server-side resources used by Smart JavaScript Auto Loader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 43.85 ▲6.84 |
Dashboard /wp-admin | 3.54 ▲0.19 | 46.35 ▼12.93 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 46.86 ▼4.56 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 79.84 ▼21.08 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 35.55 ▲1.22 |
JS AutoLoader /wp-admin/themes.php?page=jsautoloader | 3.51 | 30.64 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
javascript_autoloader_data |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Smart JavaScript Auto Loader: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.08 ▼0.18 | 1.64 ▲0.18 | 40.67 ▲0.89 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.02 | 82.96 ▼8.76 | 40.34 ▼3.90 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▲0.07 | 33.51 ▼7.91 | 35.98 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.19 ▼5.02 | 607.97 ▼60.20 | 71.21 ▲15.29 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.00 | 98.72 ▼8.05 | 43.14 ▼2.79 |
JS AutoLoader /wp-admin/themes.php?page=jsautoloader | 853 | 2.21 | 25.90 | 32.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- javascript_autoloader_data
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Plugin' not found in wp-content/plugins/javascript-autoloader/inc/ppf/ppf-plugin-addon.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/javascript-autoloader/inc/ppf/ppf-plugin.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/javascript-autoloader/inc/ppf/ppf-admin.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/javascript-autoloader/inc/ppf/ppf-subclass.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/javascript-autoloader/inc/ppf/ppf-settings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
8 plugin tags: wp_enqueue_script, footer, autoload, load, jquery...
javascript-autoloader/sw.cc-js-autoloader.php 85% from 13 tests
The entry point to "Smart JavaScript Auto Loader" version 5.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 200 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("javascript-autoloader.php" instead of "sw.cc-js-autoloader.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
Everything looks great! No dangerous files found in this plugin1,092 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 689 | 997 | 766 |
CSS | 1 | 51 | 0 | 231 |
JavaScript | 2 | 35 | 22 | 90 |
SVG | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 6 | 75.00% |
▷ Concrete classes | 2 | 25.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 72 | 84.71% |
▷ Protected methods | 5 | 5.88% |
▷ Private methods | 8 | 9.41% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin