Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/codechief/codechief.php+42
require_once(wp-content/plugins/codechief/base/admin/AuthorProfileWidget.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.98ms] Passed 4 tests
Server-side resources used by CodeChief
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.61 ▼3.32 |
Dashboard /wp-admin | 3.31 ▼0.04 | 54.36 ▼10.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.95 ▼5.76 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.17 ▼28.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.27 ▲1.36 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by CodeChief
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.02 | 1.52 ▼0.18 | 42.62 ▲2.84 |
Dashboard /wp-admin | 2,192 ▲15 | 5.51 ▼0.06 | 89.29 ▼4.02 | 36.91 ▼5.42 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.01 | 37.71 ▼6.30 | 36.15 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.43 ▼0.06 | 678.08 ▼2.36 | 59.74 ▲6.78 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▲0.08 | 98.77 ▼20.08 | 43.17 ▼5.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/codechief/codechief.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/codechief/base/Admin/AuthorProfileWidget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
codechief/codechief.php Passed 13 tests
The main file in "CodeChief" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
108 characters long description:
A awesome WordPress plugin to manage many user options and create many new features easily from admin panel.
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
No dangerous file extensions were detected2,556 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 705 | 780 | 1,752 |
CSS | 2 | 97 | 16 | 548 |
JavaScript | 5 | 65 | 15 | 154 |
PO File | 1 | 33 | 39 | 84 |
JSON | 2 | 0 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 1 | 4.00% |
Methods | 113 | |
▷ Static methods | 11 | 9.73% |
▷ Public methods | 111 | 98.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.77% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin