Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.40ms] Passed 4 tests
A check of server-side resources used by Mage Carousel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.58 ▼6.28 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.06 ▼3.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.74 ▲5.31 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.76 ▲1.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.19 ▲2.24 |
Add New /wp-admin/post-new.php?post_type=mpc_carousel | 3.33 | 49.17 |
Carousel /wp-admin/edit.php?post_type=mpc_carousel | 3.30 | 38.31 |
Category /wp-admin/edit-tags.php?taxonomy=mpc_carousel_cat&post_type=mpc_carousel | 3.25 | 34.34 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Mage Carousel: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲218 | 13.60 ▼0.78 | 10.03 ▲8.27 | 37.14 ▼4.15 |
Dashboard /wp-admin | 2,234 ▲48 | 5.84 ▲0.88 | 97.35 ▼13.22 | 38.79 ▼2.01 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.01 ▼0.01 | 39.70 ▲4.39 | 34.80 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,568 ▲54 | 18.42 ▲0.79 | 621.78 ▼65.63 | 57.36 ▲6.37 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.14 ▼0.18 | 94.99 ▼15.75 | 43.01 ▼6.08 |
Add New /wp-admin/post-new.php?post_type=mpc_carousel | 1,725 | 3.53 | 70.37 | 33.56 |
Carousel /wp-admin/edit.php?post_type=mpc_carousel | 1,092 | 1.95 | 30.12 | 28.25 |
Category /wp-admin/edit-tags.php?taxonomy=mpc_carousel_cat&post_type=mpc_carousel | 1,290 | 2.14 | 26.66 | 26.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Mage_Settings_API' not found in wp-content/plugins/mage-carousel/inc/admin_settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mage-carousel/inc/custom_cpt.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mage-carousel/inc/custom_cpt.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mage-carousel/inc/shortcode.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in mage-carousel/assets to your readme.txt
mage-carousel/index.php 85% from 13 tests
Analyzing the main PHP file in "Mage Carousel" version 1.0
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mage-carousel.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin659 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 195 | 210 | 633 |
CSS | 3 | 0 | 10 | 18 |
JavaScript | 2 | 0 | 5 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin