Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.33ms] Passed 4 tests
A check of server-side resources used by Post Rotation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.91 ▼1.91 |
Dashboard /wp-admin | 3.33 ▲0.02 | 68.42 ▲11.42 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.95 ▼1.21 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.79 ▼6.43 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.86 ▲0.22 |
Post Rotation /wp-admin/edit.php?page=post-rotation | 3.28 | 34.53 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 17 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
pr_filter_by_category |
theysaidso_admin_options |
pr_also_alter_last_modified |
pr_enabled |
pr_included_categories |
db_upgraded |
pr_fixed |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Rotation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.34 ▼0.23 | 1.71 ▼0.65 | 43.30 ▼2.77 |
Dashboard /wp-admin | 2,206 ▲29 | 5.66 ▲0.07 | 87.59 ▼12.45 | 39.38 ▼3.74 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.99 ▼0.05 | 40.59 ▲2.69 | 37.17 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.17 ▲0.23 | 628.28 ▼63.41 | 48.43 ▼11.79 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.20 ▼0.13 | 99.86 ▼16.95 | 42.18 ▼9.90 |
Post Rotation /wp-admin/edit.php?page=post-rotation | 985 | 2.05 | 25.98 | 32.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/post-rotation/post-rotation-core.php
- > /wp-content/plugins/post-rotation/admin/post-rotation-admin.php
- > /wp-content/plugins/post-rotation/post-rotation.php
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: rotation, rotator, interval, post rotator, automatic
post-rotation/post-rotation.php Passed 13 tests
The primary PHP file in "Post Rotation" version 1.9 is used by WordPress to initiate all plugin functionality
122 characters long description:
Set the rotation interval or the allowed time without new posts... and automatically an older post becomes the latest one!
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
Good job! No executable or dangerous file extensions detected392 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 78 | 9 | 332 |
CSS | 1 | 0 | 0 | 50 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin