Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.63ms] Passed 4 tests
A check of server-side resources used by Make it Srcset
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.86 ▲2.44 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.59 ▲1.25 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.47 ▼3.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.73 ▼6.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.88 ▼2.01 |
Make it Srcset /wp-admin/plugins.php?page=mis_plugin_options | 3.23 | 29.02 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
mis_plugin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Make it Srcset
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.68 ▼0.23 | 1.75 ▼0.66 | 42.25 ▼0.81 |
Dashboard /wp-admin | 2,213 ▲34 | 4.88 ▼0.93 | 112.11 ▲12.41 | 41.73 ▲0.27 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 1.98 ▼0.02 | 51.23 ▲15.84 | 40.75 ▲6.33 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 18.27 ▼4.93 | 602.81 ▼62.99 | 54.07 ▲0.91 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▲0.01 | 93.88 ▼11.73 | 42.77 ▼2.39 |
Make it Srcset /wp-admin/plugins.php?page=mis_plugin_options | 1,098 | 2.03 | 23.18 | 49.60 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/make-it-srcset/makeitsrcset.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/make-it-srcset/mis_includes/mis_functions.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/make-it-srcset/mis_includes/mis_settings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: srcset
make-it-srcset/makeitsrcset.php 92% from 13 tests
This is the main PHP file of "Make it Srcset" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("make-it-srcset.php" instead of "makeitsrcset.php")
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
Success! There were no dangerous files found in this plugin735 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 204 | 202 | 664 |
JavaScript | 4 | 13 | 11 | 66 |
Markdown | 1 | 3 | 0 | 4 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected