Benchmarks
Plugin footprint 83% from 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.02MB] [CPU: ▼2.70ms] Passed 4 tests
Analyzing server-side resources used by JPEG Quality Settings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.73 ▼0.72 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.86 ▲3.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.27 ▼2.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 89.35 ▼9.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.99 ▲1.87 |
JPEG Quality Settings /wp-admin/options-general.php?page=jpeg-quality | 3.21 | 31.42 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for JPEG Quality Settings
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.67 ▼0.71 | 1.73 ▼0.13 | 43.83 ▲1.50 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▲0.96 | 101.56 ▼1.55 | 36.27 ▼3.97 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.01 | 36.15 ▼3.37 | 35.22 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.73 ▼5.78 | 631.97 ▲50.01 | 51.53 ▼2.40 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▼0.06 | 96.34 ▼4.26 | 41.56 ▼1.35 |
JPEG Quality Settings /wp-admin/options-general.php?page=jpeg-quality | 887 | 2.02 | 24.23 | 28.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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 no errors were found, this is by no means 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jpeg-quality/jpeg-quality.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_GD' not found in wp-content/plugins/jpeg-quality/classes.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Version not formatted correctly
jpeg-quality/jpeg-quality.php Passed 13 tests
The entry point to "JPEG Quality Settings" version 1.0.0 is a PHP file that has certain tags in its header comment area
44 characters long description:
Ability to control JPEG quality in Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin181 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 47 | 16 | 172 |
SVG | 1 | 0 | 1 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin