84% xt-corporate-toolkit

Code Review | XT Corporate ToolKit

WordPress plugin XT Corporate ToolKit scored84%from 54 tests.

About plugin

  • Plugin page: xt-corporate-toolkit
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9
  • WordPress version: 6.3.1
  • First release: Aug 14, 2015
  • Latest release: Nov 16, 2017
  • Number of updates: 8
  • Update frequency: every 103.3 days
  • Top authors: xylus (75%)Dharm1025 (37.5%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,724 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.10MB] [CPU: ▼7.55ms] Passed 4 tests

Analyzing server-side resources used by XT Corporate ToolKit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1044.48 ▲2.30
Dashboard /wp-admin3.41 ▲0.1049.92 ▼2.39
Posts /wp-admin/edit.php3.46 ▲0.1051.25 ▼1.23
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.40 ▼23.65
Media Library /wp-admin/upload.php3.33 ▲0.1037.02 ▼2.93
Add Client /wp-admin/post-new.php?post_type=clients3.3738.66
Services /wp-admin/edit.php?post_type=services3.3737.63
Portfolio /wp-admin/edit.php?post_type=portfolio3.3838.21
Team /wp-admin/edit.php?post_type=team3.3741.14
Clients /wp-admin/edit.php?post_type=clients3.3736.28
Add Team Member /wp-admin/post-new.php?post_type=team3.3746.88
Add Service /wp-admin/post-new.php?post_type=services3.3742.39
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio3.3244.39
Add Portfolio /wp-admin/post-new.php?post_type=portfolio3.4653.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
category_children
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

XT Corporate ToolKit: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲17214.24 ▲0.041.90 ▲0.0841.20 ▼3.71
Dashboard /wp-admin2,307 ▲1275.59 ▼0.1097.30 ▲6.0638.50 ▼6.81
Posts /wp-admin/edit.php2,212 ▲1122.03 ▼0.0237.33 ▼0.0637.34 ▲3.84
Add New Post /wp-admin/post-new.php1,640 ▲9523.02 ▼0.47638.50 ▼31.1748.43 ▼11.29
Media Library /wp-admin/upload.php1,515 ▲1154.26 ▲0.0795.35 ▼21.7244.21 ▼2.86
Add Client /wp-admin/post-new.php?post_type=clients1,5172.5051.1254.72
Services /wp-admin/edit.php?post_type=services1,1762.0135.8128.41
Portfolio /wp-admin/edit.php?post_type=portfolio1,2231.9536.2737.48
Team /wp-admin/edit.php?post_type=team1,1761.9739.9438.42
Clients /wp-admin/edit.php?post_type=clients1,1761.9933.9635.94
Add Team Member /wp-admin/post-new.php?post_type=team1,5142.4858.9563.76
Add Service /wp-admin/post-new.php?post_type=services1,5172.4852.1654.45
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio1,5702.1629.1736.68
Add Portfolio /wp-admin/post-new.php?post_type=portfolio2,3867.76170.5658.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • category_children
    • 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 | 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xt-corporate-toolkit/xt-corporate-toolkit.php:104

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: business, corporate, toolkit

xt-corporate-toolkit/xt-corporate-toolkit.php 92% from 13 tests

The main file in "XT Corporate ToolKit" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

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

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions3
▷ Named functions3100.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