10% codechief

Code Review | CodeChief

WordPress plugin CodeChief scored10%from 54 tests.

About plugin

  • Plugin page: codechief
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Aug 21, 2020
  • Number of updates: 8
  • Update frequency: every 4.9 days
  • Top authors: mahedy150101 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,014 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.61 ▼3.32
Dashboard /wp-admin3.31 ▼0.0454.36 ▼10.05
Posts /wp-admin/edit.php3.36 ▲0.0050.95 ▼5.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.17 ▼28.78
Media Library /wp-admin/upload.php3.23 ▲0.0040.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.021.52 ▼0.1842.62 ▲2.84
Dashboard /wp-admin2,192 ▲155.51 ▼0.0689.29 ▼4.0236.91 ▼5.42
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0137.71 ▼6.3036.15 ▲0.07
Add New Post /wp-admin/post-new.php1,526 ▼023.43 ▼0.06678.08 ▼2.3659.74 ▲6.78
Media Library /wp-admin/upload.php1,400 ▲34.19 ▲0.0898.77 ▼20.0843.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP317057801,752
CSS29716548
JavaScript56515154
PO File1333984
JSON20018

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 code0.30
Average class complexity6.12
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes14.00%
Methods113
▷ Static methods119.73%
▷ Public methods11198.23%
▷ Protected methods00.00%
▷ Private methods21.77%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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