Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▲1.39ms] Passed 4 tests
Server-side resources used by Files Mash Optimizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 45.97 ▲1.09 |
Dashboard /wp-admin | 3.74 ▲0.43 | 50.40 ▲0.74 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 49.80 ▲2.60 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 96.20 ▲3.45 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 37.28 ▲1.11 |
FilesMash Optimizer /wp-admin/options-general.php?page=files-mash-optimizer | 3.63 | 40.23 |
Bulk FilesMash Optimizer /wp-admin/upload.php?page=filesmash-bulk | 3.58 | 42.00 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 48 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_filesmash_files_metadata |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
filesmash_db_version |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Files Mash Optimizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲39 | 13.29 ▼1.01 | 4.20 ▲2.16 | 43.24 ▼1.96 |
Dashboard /wp-admin | 2,210 ▲25 | 5.80 ▼0.05 | 103.73 ▼17.17 | 40.07 ▼2.22 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.04 ▲0.05 | 33.22 ▼3.62 | 35.27 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 23.02 ▲5.37 | 625.47 ▲27.16 | 56.50 ▲12.77 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.23 ▲0.01 | 97.80 ▲2.81 | 41.67 ▼0.56 |
FilesMash Optimizer /wp-admin/options-general.php?page=files-mash-optimizer | 1,331 | 2.04 | 23.08 | 45.63 |
Bulk FilesMash Optimizer /wp-admin/upload.php?page=filesmash-bulk | 869 | 2.04 | 23.05 | 30.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_filesmash_files_metadata
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- filesmash_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/files-mash-optimizer/includes/thirdparties/cloudflare/class-filesmash-cloudflare-hooks.php
- > /wp-content/plugins/files-mash-optimizer/includes/thirdparties/cloudflare/class-filesmash-cloudflare.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'filesmash_Base' not found in wp-content/plugins/files-mash-optimizer/admin/class-filesmash-settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== files-mash-optimizer ===
)
files-mash-optimizer/files-mash-optimizer.php Passed 13 tests
The main PHP script in "Files Mash Optimizer" version 1.1 is automatically included on every request by WordPress
47 characters long description:
This plugin can reduce the size of your images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,064 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 618 | 724 | 2,329 |
JavaScript | 3 | 180 | 28 | 1,275 |
CSS | 1 | 75 | 1 | 460 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 37 | 26.24% |
▷ Public methods | 131 | 92.91% |
▷ Protected methods | 1 | 0.71% |
▷ Private methods | 9 | 6.38% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 11 | 73.33% |
▷ Class constants | 4 | 26.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin