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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.99ms] Passed 4 tests
Analyzing server-side resources used by Image Rotator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.76 ▼4.15 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.98 ▲6.14 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.77 ▲3.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.43 ▲7.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.55 ▼1.92 |
Documentation /wp-admin/admin.php?page=appten_documentation | 3.24 | 29.88 |
Image Rotator /wp-admin/admin.php?page=appten_imagerotator | 3.23 | 29.80 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_appten_imagerotator |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
appten_imagerotator_version |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Rotator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.79 ▲0.43 | 1.77 ▼0.08 | 41.55 ▼7.00 |
Dashboard /wp-admin | 2,233 ▲45 | 5.82 ▼0.10 | 97.13 ▲0.62 | 42.47 ▲0.99 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.04 ▼0.00 | 52.01 ▲16.95 | 38.40 ▲7.89 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 22.97 ▼0.10 | 608.03 ▼69.57 | 54.85 ▲8.23 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.15 ▼0.04 | 95.28 ▲0.02 | 44.22 ▲1.19 |
Documentation /wp-admin/admin.php?page=appten_documentation | 838 | 2.18 | 21.49 | 28.16 |
Image Rotator /wp-admin/admin.php?page=appten_imagerotator | 928 | 2.06 | 23.31 | 24.22 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=appten_imagerotator
- > Notice in wp-content/plugins/appten-image-rotator/appten_imagerotator/__default.php+10
Undefined index: opt
- > GET request to /wp-admin/admin.php?page=appten_imagerotator
- > Notice in wp-content/plugins/appten-image-rotator/appten_imagerotator/__grid.php+93
Undefined variable: category
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
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/appten-image-rotator/appten_imagerotator/__default.php on line 4
- > PHP Notice
Undefined index: page in wp-content/plugins/appten-image-rotator/appten_imagerotator/__delete.php on line 6
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/appten-image-rotator/appten_imagerotator/__add.php on line 24
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/appten-image-rotator/appten_imagerotator/__edit.php:22
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/appten-image-rotator/appten_imagerotator/__grid.php on line 3
- > PHP Notice
Undefined index: opt in wp-content/plugins/appten-image-rotator/appten_imagerotator/__default.php on line 10
- > PHP Notice
Undefined index: edited in wp-content/plugins/appten-image-rotator/appten_imagerotator/__edit.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/appten-image-rotator/appten_imagerotator/__grid.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/appten-image-rotator/config.php:12
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/appten-image-rotator/appten_imagerotator/__grid.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #2 (Adding & Updating Image Rotator Settings) image required
- Screenshots: Please a description for screenshot #0 in appten-image-rotator/assets to your readme.txt
appten-image-rotator/index.php 92% from 13 tests
This is the main PHP file of "Image Rotator" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("appten-image-rotator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin776 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 82 | 54 | 776 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin