84% skil-toolbox

Code Review | Skil Toolbox

WordPress plugin Skil Toolbox scored84%from 54 tests.

About plugin

  • Plugin page: skil-toolbox
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 26, 2016
  • Latest release: Jul 27, 2016
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: StylishThemesCo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.45ms] Passed 4 tests

Analyzing server-side resources used by Skil Toolbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.73 ▼2.05
Dashboard /wp-admin3.36 ▲0.0651.62 ▼2.76
Posts /wp-admin/edit.php3.48 ▲0.1251.70 ▼1.56
Add New Post /wp-admin/post-new.php5.94 ▲0.0695.57 ▼2.90
Media Library /wp-admin/upload.php3.28 ▲0.0635.70 ▼2.09
Add New /wp-admin/post-new.php?post_type=stb_team_post_type3.3448.18
All Teams /wp-admin/edit.php?post_type=stb_team_post_type3.3337.53

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/skil-toolbox/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Skil Toolbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.54 ▼0.831.74 ▼0.0146.25 ▲0.33
Dashboard /wp-admin2,254 ▲514.91 ▼0.06103.22 ▼10.7938.97 ▼9.45
Posts /wp-admin/edit.php2,130 ▲272.02 ▼0.0242.57 ▲1.0337.06 ▲0.50
Add New Post /wp-admin/post-new.php1,552 ▲2617.60 ▼0.06634.55 ▼5.9752.94 ▼2.34
Media Library /wp-admin/upload.php1,430 ▲304.19 ▼0.05101.54 ▲1.3542.98 ▼0.84
Add New /wp-admin/post-new.php?post_type=stb_team_post_type1,6023.7362.8329.19
All Teams /wp-admin/edit.php?post_type=stb_team_post_type1,0761.9635.4130.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/skil-toolbox/inc/post-type-team.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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:
  • Plugin Name: You should set the name of your plugin on the first line ( === skil-toolbox === )
The official readme.txt might help

skil-toolbox/skil-toolbox.php Passed 13 tests

The primary PHP file in "Skil Toolbox" version 1.0.0 is used by WordPress to initiate all plugin functionality
54 characters long description:
Register custom post type and include MailChimp Class.

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
Success! There were no dangerous files found in this plugin214 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43081146
PO File1252668

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin