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.01MB] [CPU: ▼12.04ms] Passed 4 tests
This is a short check of server-side resources used by WP-JSHRINK
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.75 ▼1.50 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.04 ▼16.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.51 ▼3.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.44 ▼26.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.76 ▲4.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-JSHRINK
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 13.64 ▼0.73 | 1.61 ▼0.00 | 43.62 ▲3.43 |
Dashboard /wp-admin | 2,209 ▲24 | 5.97 ▲0.91 | 100.83 ▼5.44 | 38.68 ▼6.92 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.00 | 35.45 ▼4.96 | 33.59 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.37 ▲4.98 | 653.84 ▲39.03 | 52.09 ▼7.43 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.25 ▲0.05 | 109.06 ▲11.35 | 47.22 ▲6.54 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-jshrink/bootstrap.php:29
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-jshrink/vendor/tedivm/jshrink/src/JShrink/Minifier.php on line 227
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: minify, javascript
wp-jshrink/bootstrap.php 85% from 13 tests
Analyzing the main PHP file in "WP-JSHRINK" version 1.1.3
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-jshrink.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin890 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 225 | 485 | 706 |
JSON | 3 | 0 | 0 | 80 |
Markdown | 2 | 47 | 0 | 68 |
XML | 1 | 1 | 0 | 22 |
YAML | 2 | 4 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 4 | 7.69% |
▷ Public methods | 37 | 71.15% |
▷ Protected methods | 14 | 26.92% |
▷ Private methods | 1 | 1.92% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin