84% startupx-toolkit

Code Review | Startupx Toolkit

WordPress plugin Startupx Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: startupx-toolkit
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 11, 2022
  • Latest release: Jul 11, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: codegearthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /705 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.93ms] Passed 4 tests

This is a short check of server-side resources used by Startupx Toolkit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.95 ▼2.05
Dashboard /wp-admin3.34 ▼0.0151.37 ▼17.40
Posts /wp-admin/edit.php3.39 ▲0.0347.17 ▲0.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.17 ▼5.05
Media Library /wp-admin/upload.php3.26 ▲0.0342.08 ▲1.66

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Startupx Toolkit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8313.25 ▼1.131.76 ▼0.1845.87 ▲2.47
Dashboard /wp-admin2,247 ▲415.85 ▲0.9698.58 ▼9.8738.69 ▲0.91
Posts /wp-admin/edit.php2,130 ▲302.20 ▲0.2037.46 ▼0.0338.99 ▲4.79
Add New Post /wp-admin/post-new.php1,574 ▲21023.03 ▲5.90591.43 ▲51.9748.55 ▼23.04
Media Library /wp-admin/upload.php1,426 ▲324.15 ▼0.15114.95 ▼7.7050.48 ▼0.16

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Trait 'StartupxToolkit\\Traits\\Singleton' not found in wp-content/plugins/startupx-toolkit/core/elementor/elementor.php on line 7
    • > PHP Fatal error
      Trait 'StartupxToolkit\\Traits\\Singleton' not found in wp-content/plugins/startupx-toolkit/core/loader.php on line 8
    • > PHP Fatal error
      Trait 'StartupxToolkit\\Traits\\Singleton' not found in wp-content/plugins/startupx-toolkit/core/helper.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: sites, import, codegear, elementor, codegearthemes...

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

The primary PHP file in "Startupx Toolkit" version 1.0.0 is used by WordPress to initiate all plugin functionality
57 characters long description:
StartupxToolkit is the most-complete addon for Elementor.

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
Good job! No executable or dangerous file extensions detected11,102 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,7742488,714
PHP112773521,660
CSS32361728

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.40
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces6
Interfaces0
Traits1
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes222.22%
Methods57
▷ Static methods814.04%
▷ Public methods4273.68%
▷ Protected methods1424.56%
▷ Private methods11.75%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected