Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/optimize-javascript/includes/pfeiffersms-admin-bar.php+39
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.24MB] [CPU: ▼4.60ms] Passed 4 tests
A check of server-side resources used by Minify Javascript
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 32.67 ▼9.46 |
Dashboard /wp-admin | 3.55 ▲0.24 | 46.48 ▼2.78 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 47.04 ▲0.54 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 84.63 ▼6.69 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 41.80 ▲7.03 |
Minify Javascript /wp-admin/options-general.php?page=optimize-javascript | 3.41 | 243.01 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options |
---|
pfeiffersms_plugin_version |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
pfeiffersms_options |
pfeiffersms_notice |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Minify Javascript
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.21 ▼0.96 | 2.50 ▲0.74 | 42.88 ▲2.72 |
Dashboard /wp-admin | 2,220 ▲32 | 5.84 ▼0.06 | 96.61 ▼7.21 | 40.92 ▼0.51 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▼0.01 | 33.71 ▼6.97 | 30.02 ▼6.78 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 23.17 ▲0.08 | 647.72 ▼11.19 | 56.45 ▼2.07 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.25 ▲0.06 | 108.84 ▼3.48 | 47.44 ▲0.99 |
Minify Javascript /wp-admin/options-general.php?page=optimize-javascript | 1,110 | 2.08 | 25.95 | 26.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=optimize-javascript
- > Deprecated in wp-content/plugins/optimize-javascript/includes/pfeiffersms-admin.php+623
join(): Passing glue string after array is deprecated. Swap the parameters
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
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/optimize-javascript/includes/pfeiffersms-config.php on line 11
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/optimize-javascript/includes/pfeiffersms-config.php on line 12
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/optimize-javascript/includes/minifier/JShrink/Minifier.php on line 227
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/optimize-javascript/includes/pfeiffersms-config.php on line 11
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/optimize-javascript/includes/pfeiffersms-config.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/optimize-javascript/includes/minifier/minify/src/CSS.php:18
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/optimize-javascript/includes/minifier/minify/src/Exceptions/IOException.php:8
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/optimize-javascript/includes/minifier/minify/src/Exceptions/BasicException.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optimize-javascript/includes/pfeiffersms-admin.php:77
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/optimize-javascript/includes/minifier/minify/src/JS.php:15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- License uri: Invalid URI ("")
optimize-javascript/pfeiffers-merge-scripts.php 92% from 13 tests
"Minify Javascript" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("optimize-javascript.php" instead of "pfeiffers-merge-scripts.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .jar - Java Archive in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/optimize-javascript/includes/minifier/yuicompressor/yuicompressor.jar
- .jar - Java Archive in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 646 | 1,434 | 2,201 |
CSS | 1 | 8 | 0 | 214 |
JavaScript | 3 | 15 | 14 | 107 |
Markdown | 1 | 21 | 0 | 38 |
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.35 |
Average class complexity | 24.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 4 | 28.57% |
▷ Concrete classes | 10 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 2 | 1.72% |
▷ Public methods | 63 | 54.31% |
▷ Protected methods | 44 | 37.93% |
▷ Private methods | 9 | 7.76% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected