Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.29ms] Passed 4 tests
This is a short check of server-side resources used by CC-Redirects
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.41 ▼0.14 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.20 ▼18.44 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.06 ▼0.61 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 98.84 ▼9.97 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 42.21 ▲7.98 |
Redirects /wp-admin/options-general.php?page=cc-redirects | 3.32 | 32.87 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CC-Redirects
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.48 ▼0.16 | 1.71 ▼0.07 | 40.18 ▼1.07 |
Dashboard /wp-admin | 2,227 ▲21 | 4.84 ▼0.08 | 109.06 ▲1.75 | 43.30 ▼0.09 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 1.99 ▼0.03 | 39.11 ▲3.48 | 35.76 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.47 ▲5.97 | 666.93 ▼2.13 | 58.59 ▼11.81 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▼0.01 | 103.87 ▼0.20 | 46.64 ▼1.64 |
Redirects /wp-admin/options-general.php?page=cc-redirects | 1,203 | 1.68 | 26.24 | 31.82 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/cc-redirects/uninstall.php:25
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (**CC-Redirects Settings** - Visit the 'Settings > Redirects' page, set your preferred redirects and save them.)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cc-redirects/plugin.php 92% from 13 tests
"CC-Redirects" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cc-redirects.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected765 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 216 | 533 | 570 |
PO File | 1 | 49 | 77 | 129 |
JSON | 1 | 0 | 0 | 34 |
CSS | 1 | 0 | 0 | 19 |
Markdown | 1 | 5 | 0 | 8 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 17 | 23.61% |
▷ Public methods | 47 | 65.28% |
▷ Protected methods | 25 | 34.72% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 81.28KB | 41.32KB | ▼ 49.16% |