Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼10.34ms] Passed 4 tests
Server-side resources used by Mighty Classic Pros And Cons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 34.75 ▼1.08 |
Dashboard /wp-admin | 3.41 ▲0.06 | 41.85 ▼18.03 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.51 ▼0.64 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.81 ▼21.62 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.11 ▲0.36 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Mighty Classic Pros And Cons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,271 ▲525 | 13.57 ▼0.78 | 1.54 ▼0.30 | 28.07 ▼12.97 |
Dashboard /wp-admin | 2,678 ▲489 | 5.31 ▲0.38 | 119.20 ▼0.04 | 113.48 ▲70.42 |
Posts /wp-admin/edit.php | 2,562 ▲470 | 2.51 ▲0.45 | 37.38 ▼3.83 | 67.05 ▲31.72 |
Add New Post /wp-admin/post-new.php | 1,979 ▲451 | 23.26 ▲4.64 | 653.26 ▲30.42 | 144.43 ▲74.56 |
Media Library /wp-admin/upload.php | 1,850 ▲459 | 4.72 ▲0.53 | 98.18 ▲2.60 | 94.23 ▲52.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joomdev-wp-pros-cons/admin/joomdev-wpc-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joomdev-wp-pros-cons/admin/joomdev-wpc-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/joomdev-wp-pros-cons/joomdev-wpc-shortcodes.php:4
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Screen shot to display settings.), #4 (Screen shot to display shortcode.), #5 (Frontend Screenshot.)
joomdev-wp-pros-cons/joomdev-wp-pros-cons.php 92% from 13 tests
The main PHP script in "Mighty Classic Pros And Cons" version 2.0.9 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
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
No dangerous file extensions were detected1,162 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 102 | 50 | 886 |
CSS | 2 | 50 | 2 | 234 |
JavaScript | 2 | 12 | 12 | 38 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/thumbs-up-icon.png | 2.26KB | 1.67KB | ▼ 26.02% |
admin/assets/images/joomdev-wpc.png | 3.45KB | 2.00KB | ▼ 42.07% |
assets/img/check.png | 1.23KB | 0.48KB | ▼ 60.51% |
admin/assets/images/font-awesome_4-7-0_shopping-cart_256_0_ffffff_none.png | 2.56KB | 2.57KB | 0.00% |
assets/img/thumbs-down-icon.png | 2.25KB | 1.67KB | ▼ 25.69% |