84% simple-toolkit

Code Review | Simple Toolkit

WordPress plugin Simple Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: simple-toolkit
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 22, 2023
  • Latest release: Feb 22, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: codelessthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /110 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.21ms] Passed 4 tests

An overview of server-side resources used by Simple Toolkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.97 ▼2.09
Dashboard /wp-admin3.34 ▼0.0049.22 ▼21.76
Posts /wp-admin/edit.php3.39 ▲0.0452.89 ▲1.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.85 ▼10.29
Media Library /wp-admin/upload.php3.26 ▲0.0442.65 ▲6.91
Simple Toolkit /wp-admin/options-general.php?page=wp-simple-toolkit-settings3.2332.42

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

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/simple-toolkit/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Toolkit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.40 ▲0.011.76 ▼0.1244.76 ▼1.04
Dashboard /wp-admin2,222 ▲224.85 ▼1.0198.64 ▼22.9038.53 ▼7.80
Posts /wp-admin/edit.php2,108 ▲112.02 ▼0.0441.85 ▲7.0235.02 ▼2.98
Add New Post /wp-admin/post-new.php1,548 ▲1623.10 ▼0.37610.12 ▼69.4453.44 ▼3.69
Media Library /wp-admin/upload.php1,398 ▼24.18 ▲0.0198.04 ▼18.7542.01 ▼8.14
Simple Toolkit /wp-admin/options-general.php?page=wp-simple-toolkit-settings9242.0222.7927.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-toolkit/simple-toolkit.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can look at the official readme.txt

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

The primary PHP file in "Simple Toolkit" version 1.0.0 is used by WordPress to initiate all plugin functionality
56 characters long description:
A plugin that adds various functionalities to WordPress.

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 detected218 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13625218

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin