Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲7.23MB] [CPU: ▲56.06ms] 75% from 4 tests
An overview of server-side resources used by CIDRAM
The following require your attention
- Extra RAM: Try to keep extra memory usage under 5MB (currently 7.23MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.71 ▲7.24 | 108.40 ▲66.85 |
Dashboard /wp-admin | 10.73 ▲7.38 | 108.10 ▲48.77 |
Posts /wp-admin/edit.php | 10.73 ▲7.37 | 119.35 ▲72.63 |
Add New Post /wp-admin/post-new.php | 12.79 ▲6.90 | 147.13 ▲44.10 |
Media Library /wp-admin/upload.php | 10.73 ▲7.50 | 98.32 ▲64.52 |
Server storage [IO: ▲8.20MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 2 files (7.77KB) outside of "wp-content/plugins/cidram/" and "wp-content/uploads/"
- (new file) wp-content/plugins/.htaccess
- (new file) wp-content/plugins/cidram-configuration.yml
Filesystem: 377 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for CIDRAM
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲59 | 14.31 ▼0.08 | 1.60 ▼0.24 | 37.15 ▼9.22 |
Dashboard /wp-admin | 2,214 ▲36 | 5.62 ▲0.04 | 93.74 ▼13.68 | 44.77 ▲1.67 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.94 ▼0.08 | 39.40 ▼2.64 | 36.65 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,539 ▼1 | 21.00 ▼1.91 | 632.18 ▼41.07 | 60.06 ▲1.30 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.27 ▲0.10 | 97.41 ▲2.53 | 41.98 ▲0.55 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cidram/vault/bypasses.php
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cidram/vault/modules/bgpview.php:17
- > PHP Fatal error
Uncaught Error: Class 'Maikuolan\\Common\\CommonAbstract' not found in wp-content/plugins/cidram/vault/Maikuolan/Common/Operation.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cidram/vault/modules/ipapi.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cidram/vault/events/default.php:19
- > PHP Fatal error
Uncaught Error: Class 'Maikuolan\\Common\\CommonAbstract' not found in wp-content/plugins/cidram/vault/Maikuolan/Common/YAML.php:21
- > PHP Fatal error
Uncaught Error: Class 'Maikuolan\\Common\\CommonAbstract' not found in wp-content/plugins/cidram/vault/Maikuolan/Common/Matrix.php:18
- > PHP Fatal error
Uncaught Error: Class 'Maikuolan\\Common\\CommonAbstract' not found in wp-content/plugins/cidram/vault/Maikuolan/Common/L10N.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cidram/vault/modules/badhosts.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cidram/vault/modules/bobuam.php:31
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cidram/vault/modules/tor.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cidram/cidram.php 92% from 13 tests
The main file in "CIDRAM" v. 3.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 650 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected66,398 lines of code in 290 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 85 | 139 | 1,887 | 38,720 |
PHP | 50 | 2,129 | 5,477 | 21,281 |
HTML | 84 | 42 | 0 | 2,827 |
CSS | 9 | 3 | 11 | 2,024 |
PO File | 25 | 150 | 250 | 1,103 |
Markdown | 1 | 130 | 0 | 224 |
JavaScript | 2 | 12 | 0 | 185 |
SVG | 34 | 0 | 0 | 34 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,166)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 164.26 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 1,166.00 |
Average method complexity | 11.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 10 | |
Classes | 21 | |
▷ Abstract classes | 2 | 9.52% |
▷ Concrete classes | 19 | 90.48% |
▷ Final classes | 0 | 0.00% |
Methods | 329 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 164 | 49.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 165 | 50.15% |
Functions | 80 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 80 | 100.00% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 17 | 77.27% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vault/assets/frontend/default/lock_wt_c.png | 0.66KB | 0.17KB | ▼ 74.07% |
vault/assets/frontend/default/lock_rd_o.png | 0.72KB | 0.27KB | ▼ 62.89% |
vault/assets/frontend/default/lock_wt_o.png | 0.71KB | 0.26KB | ▼ 62.60% |
vault/assets/frontend/default/lock_rd_c.png | 0.70KB | 0.17KB | ▼ 75.17% |
vault/assets/frontend/default/lock_bl_c.png | 0.69KB | 0.17KB | ▼ 75.18% |