Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▼15.89ms] Passed 4 tests
An overview of server-side resources used by Imsanity
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▼0.01 | 44.30 ▼14.98 |
Dashboard /wp-admin | 3.35 ▲0.04 | 61.17 ▲1.88 |
Posts /wp-admin/edit.php | 3.40 ▼0.45 | 51.02 ▼14.27 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 102.40 ▼27.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.59 ▼7.07 |
Imsanity /wp-admin/options-general.php?page=imsanity/imsanity.php | 3.27 | 38.03 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
imsanity_version |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Imsanity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.33 ▲0.15 | 2.53 ▲0.54 | 46.05 ▼6.40 |
Dashboard /wp-admin | 2,202 ▲28 | 5.69 ▲0.00 | 93.93 ▼2.13 | 43.28 ▼3.34 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.01 ▼0.01 | 43.57 ▼2.27 | 40.35 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,529 ▼150 | 21.58 ▼0.24 | 686.05 ▼70.79 | 51.81 ▼19.95 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.23 ▲0.09 | 108.88 ▼16.59 | 49.92 ▼9.68 |
Imsanity /wp-admin/options-general.php?page=imsanity/imsanity.php | 1,072 | 2.20 | 33.83 | 41.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- imsanity_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imsanity/ajax.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function get_blog_prefix() on null in wp-content/plugins/imsanity/settings.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: scale, upload, space saver, quality, image...
imsanity/imsanity.php Passed 13 tests
The main PHP script in "Imsanity" version 2.8.3 is automatically included on every request by WordPress
42 characters long description:
Imsanity stops insanely huge image uploads
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,945 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 198 | 431 | 1,501 |
PO File | 2 | 88 | 94 | 266 |
JavaScript | 1 | 12 | 20 | 133 |
XML | 1 | 5 | 0 | 23 |
YAML | 1 | 8 | 0 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 13.00 |
▷ Minimum method complexity | 13.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.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 were not PNG files found in your plugin