73% sksdev-toolkit

Code Review | SKSDEV Toolkit

WordPress plugin SKSDEV Toolkit scored73%from 54 tests.

About plugin

  • Plugin page: sksdev-toolkit
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2015
  • Latest release: Aug 25, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: sksdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,163 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.63MB] [CPU: ▼24.95ms] Passed 4 tests

Analyzing server-side resources used by SKSDEV Toolkit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.21 ▲0.22
Dashboard /wp-admin3.39 ▲0.0449.49 ▼15.41
Posts /wp-admin/edit.php3.44 ▲0.0851.66 ▼10.77
Add New Post /wp-admin/post-new.php3.17 ▼2.7241.24 ▼73.85
Media Library /wp-admin/upload.php3.31 ▲0.0839.91 ▲4.87
Add New /wp-admin/post-new.php?post_type=portfolio3.1734.95
Team /wp-admin/edit.php?post_type=team3.3541.36
Skills /wp-admin/edit.php?post_type=skills3.3538.89
Add New /wp-admin/post-new.php?post_type=skills3.1734.11
Add New /wp-admin/post-new.php?post_type=team3.1732.47
Portfolio /wp-admin/edit.php?post_type=portfolio3.3539.16

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for SKSDEV Toolkit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲15913.29 ▼1.241.71 ▼0.1341.49 ▼1.57
Dashboard /wp-admin2,305 ▲1204.99 ▲0.0598.65 ▼8.0381.24 ▲37.76
Posts /wp-admin/edit.php2,182 ▲932.01 ▼0.0139.85 ▼1.7533.45 ▼1.91
Add New Post /wp-admin/post-new.php1,604 ▲6223.12 ▲4.77747.12 ▲121.8835.46 ▼19.95
Media Library /wp-admin/upload.php1,487 ▲1054.23 ▲0.03101.53 ▲0.9073.80 ▲30.29
Add New /wp-admin/post-new.php?post_type=portfolio2,2297.57169.56111.31
Team /wp-admin/edit.php?post_type=team1,1491.9536.7928.26
Skills /wp-admin/edit.php?post_type=skills1,1491.9832.6128.27
Add New /wp-admin/post-new.php?post_type=skills1,5312.5245.7779.10
Add New /wp-admin/post-new.php?post_type=team1,7463.5562.2173.15
Portfolio /wp-admin/edit.php?post_type=portfolio1,1461.9535.0229.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Notice in wp-content/plugins/sksdev-toolkit/posttype/posttype.php+196
    Trying to get property 'ID' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Notice in wp-content/plugins/sksdev-toolkit/posttype/posttype.php+93
    Undefined index: designation
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Notice in wp-content/plugins/sksdev-toolkit/posttype/posttype.php+94
    Undefined index: facebook
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Notice in wp-content/plugins/sksdev-toolkit/posttype/posttype.php+95
    Undefined index: twitter
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Notice in wp-content/plugins/sksdev-toolkit/posttype/posttype.php+96
    Undefined index: linkedin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Notice in wp-content/plugins/sksdev-toolkit/posttype/posttype.php+196
    Undefined index: digit_number
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=team
    • > Notice in wp-content/plugins/sksdev-toolkit/posttype/posttype.php+96
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sksdev-toolkit/sksdev-toolkit.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sksdev-toolkit/posttype/posttype.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=portfolio
    • > Network (severe)
    wp-content/themes/twentytwentyone/images/portfolio.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=portfolio
    • > Network (severe)
    wp-content/themes/twentytwentyone/images/team.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=portfolio
    • > Network (severe)
    wp-content/themes/twentytwentyone/images/skills.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were found

sksdev-toolkit/sksdev-toolkit.php Passed 13 tests

The main file in "SKSDEV Toolkit" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
A specific plugin use in Sksdev Theme to help you register post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25819147

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected