84% site-toolkit

Code Review | Site Toolkit

WordPress plugin Site Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: site-toolkit
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Jan 10, 2023
  • Latest release: Nov 10, 2023
  • Number of updates: 10
  • Update frequency: every 30.4 days
  • Top authors: xlthlx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /281 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼4.90ms] Passed 4 tests

A check of server-side resources used by Site Toolkit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1235.39 ▼5.80
Dashboard /wp-admin3.62 ▲0.3146.12 ▲1.31
Posts /wp-admin/edit.php3.72 ▲0.3651.70 ▲4.39
Add New Post /wp-admin/post-new.php6.31 ▲0.4277.81 ▼19.05
Media Library /wp-admin/upload.php3.56 ▲0.3335.50 ▲3.93

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Site Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3314.71 ▲0.391.67 ▼0.1636.08 ▼9.58
Dashboard /wp-admin2,211 ▲335.58 ▼0.2289.88 ▼20.0242.05 ▼1.86
Posts /wp-admin/edit.php2,122 ▲191.98 ▼0.1039.34 ▼3.3436.75 ▲0.88
Add New Post /wp-admin/post-new.php1,539 ▲1323.43 ▲0.35597.24 ▼26.5757.49 ▲8.74
Media Library /wp-admin/upload.php1,419 ▲224.15 ▼0.04104.85 ▲2.4943.23 ▲0.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-toolkit/toolkit/inc/custom-login-url.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-toolkit/toolkit/inc/custom-login-url.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/site-toolkit/site-toolkit.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-toolkit/toolkit/inc/custom-login-url.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-toolkit/toolkit/admin/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: archives, widgets, tools, emoji, header...

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

The entry point to "Site Toolkit" version 1.0.3 is a PHP file that has certain tags in its header comment area
47 characters long description:
Sets of tools for WordPress admin and frontend.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,569 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP252596841,287
PO File179110175
JSON30064
XML1234943

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods37
▷ Static methods12.70%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin