Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.43ms] Passed 4 tests
A check of server-side resources used by Cycles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.94 ▲0.92 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.63 ▼5.51 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.91 ▼5.20 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.86 ▼7.68 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 41.28 ▲0.68 |
Cycles /wp-admin/options-general.php?page=cycles | 3.29 | 35.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cycles
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.26 ▲0.02 | 1.67 ▲0.00 | 42.54 ▲0.31 |
Dashboard /wp-admin | 2,232 ▲32 | 5.85 ▼0.16 | 105.85 ▼10.09 | 43.69 ▼2.03 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.00 ▼0.03 | 36.84 ▼7.01 | 36.54 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▼13 | 23.09 ▼0.33 | 634.69 ▼24.99 | 60.33 ▲7.01 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.22 ▼0.02 | 99.75 ▼34.84 | 44.89 ▼9.86 |
Cycles /wp-admin/options-general.php?page=cycles | 990 | 1.76 | 25.55 | 32.94 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=cycles
- > Notice in wp-content/plugins/cycles/views/settings.php+111
Undefined property: Cycles::$plugin
- > GET request to /wp-admin/options-general.php?page=cycles
- > Notice in wp-content/plugins/cycles/views/settings.php+111
Trying to get property 'name' of non-object
- > GET request to /wp-admin/options-general.php?page=cycles
- > Notice in wp-content/plugins/cycles/views/settings.php+178
Undefined index: ihaf_roles
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cycles/admin/partials/cycles-admin-display.php
- > /wp-content/plugins/cycles/public/partials/cycles-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cycles/views/settings.php:19
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
cycles/cycles.php Passed 13 tests
The main PHP script in "Cycles" version 1.1 is automatically included on every request by WordPress
91 characters long description:
Embeds the Cycles project script into your website, enabling visual feedback and approvals.
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
Everything looks great! No dangerous files found in this plugin444 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 170 | 573 | 438 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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.30 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin