Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▲16.46ms] Passed 4 tests
Analyzing server-side resources used by Femora Compress - WEBP - PNG - JPG
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 59.50 ▲20.89 |
Dashboard /wp-admin | 3.61 ▲0.30 | 61.34 ▲14.97 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 67.41 ▲20.63 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 99.66 ▲9.36 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 55.77 ▲22.03 |
Setting /wp-admin/admin.php?page=femora_configuracion | 3.42 | 54.98 |
Femora Compress /wp-admin/admin.php?page=femora_compress | 3.44 | 55.33 |
Server storage [IO: ▲2.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 146 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_femora_usage_statistics |
wp_femora_pending_images |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Femora Compress - WEBP - PNG - JPG
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲147 | 13.81 ▼0.56 | 1.83 ▲0.08 | 41.65 ▲0.00 |
Dashboard /wp-admin | 2,263 ▲75 | 5.56 ▲0.68 | 108.19 ▲5.68 | 40.15 ▼0.99 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.27 ▲0.23 | 44.87 ▲11.10 | 31.71 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,566 ▲30 | 22.32 ▼1.38 | 674.83 ▲12.77 | 38.49 ▼16.59 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.65 ▲0.46 | 109.69 ▼0.21 | 47.40 ▲0.53 |
Setting /wp-admin/admin.php?page=femora_configuracion | 975 | 2.28 | 39.08 | 26.88 |
Femora Compress /wp-admin/admin.php?page=femora_compress | 1,666 | 3.22 | 95.48 | 51.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_femora_usage_statistics
- wp_femora_pending_images
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/femora-compress/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/femora-compress/admin/femora-compress-background-process.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/femora-compress/classes/class-femora-compress-background-async.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/femora-compress/admin/class-femora-compress-background-async.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/femora-compress/classes/wp-background-process.php:14
- > 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Register a new account.), #2 (Start the optimization in your WordPress site. (NOTE: the optimization process will include all the images regadless the size)), #3 (Right after the optimization you will see the improvement in the images.)
femora-compress/femora-compress.php Passed 13 tests
The principal PHP file in "Femora Compress - WEBP - PNG - JPG" v. 0.51.3 is loaded by WordPress automatically on each request
110 characters long description:
Converte to Webp, super compresses JPG and PNG images with the best quality for the web and the smallest size.
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
Everything looks great! No dangerous files found in this plugin29,051 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 6,301 | 21,390 | 21,508 |
CSS | 21 | 227 | 162 | 3,737 |
PHP | 44 | 697 | 1,528 | 2,968 |
Sass | 3 | 93 | 37 | 478 |
Markdown | 1 | 60 | 0 | 112 |
HTML | 2 | 6 | 10 | 90 |
PO File | 1 | 32 | 42 | 85 |
JSON | 2 | 0 | 0 | 72 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 4 | 20.00% |
▷ Concrete classes | 16 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 15 | 9.32% |
▷ Public methods | 115 | 71.43% |
▷ Protected methods | 40 | 24.84% |
▷ Private methods | 6 | 3.73% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/libraries/css/DataTables-1.10.18/images/sort_both.png | 0.20KB | 0.20KB | 0.00% |
admin/libraries/images/sort_desc.png | 0.18KB | 0.18KB | 0.00% |
admin/libraries/images/sort_both.png | 0.20KB | 0.20KB | 0.00% |
assets/images/icono-username.png | 0.37KB | 0.20KB | ▼ 45.77% |
assets/images/icono-password.png | 0.41KB | 0.21KB | ▼ 48.44% |