Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.26MB] [CPU: ▼16.88ms] Passed 4 tests
Server-side resources used by Mighty Pros & Cons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.62 ▼2.99 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.91 ▼5.79 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.31 ▲4.04 |
Add New Post /wp-admin/post-new.php | 4.82 ▼1.07 | 51.30 ▼62.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.00 ▲6.25 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Mighty Pros & Cons: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.73 ▲0.34 | 1.68 ▼0.03 | 40.90 ▼0.71 |
Dashboard /wp-admin | 2,200 ▲14 | 5.81 ▼0.12 | 100.55 ▼6.37 | 40.79 ▼3.13 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▲0.00 | 40.09 ▲2.10 | 35.21 ▲0.46 |
Add New Post /wp-admin/post-new.php | 6,357 ▲4,822 | 28.16 ▲5.20 | 942.63 ▲263.43 | 57.03 ▲7.66 |
Media Library /wp-admin/upload.php | 1,388 ▲9 | 4.15 ▼0.04 | 95.77 ▼2.85 | 43.39 ▼3.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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: Please add images for these screenshots: #1 (Backend screenshot.), #2 (Style 1.), #3 (Style 2.), #4 (Style 3.)
- Plugin Name: You should set the name of your plugin on the first line (
=== mighty-pros-cons ===
)
mighty-pros-cons/pros-cons.php 92% from 13 tests
This is the main PHP file of "Mighty Pros & Cons" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("mighty-pros-cons.php" instead of "pros-cons.php")
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
Good job! No executable or dangerous file extensions detected10,741 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 7,511 |
JavaScript | 5 | 84 | 86 | 2,224 |
Sass | 3 | 44 | 12 | 482 |
CSS | 2 | 4 | 12 | 354 |
Markdown | 1 | 33 | 0 | 90 |
PHP | 2 | 12 | 41 | 76 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-4.png | 16.24KB | 7.32KB | ▼ 54.90% |
Screenshot-2.png | 24.46KB | 10.99KB | ▼ 55.09% |
Screenshot-3.png | 27.80KB | 11.14KB | ▼ 59.93% |
Screenshot-1.png | 65.23KB | 26.48KB | ▼ 59.41% |