78% typerocket-ui

Code Review | TypeRocket UI

WordPress plugin TypeRocket UI scored78%from 54 tests.

About plugin

  • Plugin page: typerocket-ui
  • Plugin version: 5.0.11
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.0
  • WordPress version: 6.3.1
  • First release: Oct 19, 2020
  • Latest release: Oct 27, 2022
  • Number of updates: 14
  • Update frequency: every 52.9 days
  • Top authors: kevindees (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,503 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.14MB] [CPU: ▲5.15ms] Passed 4 tests

Server-side resources used by TypeRocket UI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.53 ▲1.0653.78 ▲8.62
Dashboard /wp-admin4.72 ▲1.4163.54 ▲12.22
Posts /wp-admin/edit.php4.50 ▲1.1461.93 ▲7.87
Add New Post /wp-admin/post-new.php7.06 ▲1.1796.17 ▼8.10
Media Library /wp-admin/upload.php4.43 ▲1.2052.20 ▲15.51

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for TypeRocket UI
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10813.25 ▼1.291.92 ▲0.1440.28 ▼2.55
Dashboard /wp-admin2,273 ▲995.86 ▲0.2592.32 ▼6.0380.94 ▲35.73
Posts /wp-admin/edit.php2,127 ▲272.49 ▲0.3443.29 ▲2.3036.34 ▼2.45
Add New Post /wp-admin/post-new.php1,555 ▲2718.04 ▼4.98680.06 ▼17.1275.16 ▲17.08
Media Library /wp-admin/upload.php1,421 ▲274.51 ▲0.35117.80 ▲9.4748.74 ▲7.51

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/typerocket-ui/uninstall.php
    • > /wp-content/plugins/typerocket-ui/meta-dashboard.php
    • > /wp-content/plugins/typerocket-ui/typerocket-ui.php
  • 162× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'TypeRocket\\Console\\Command' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Console/Commands/MakeJob.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'TypeRocket\\Http\\Middleware\\Middleware' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Http/Middleware/CanManageCategories.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'TypeRocket\\Controllers\\Controller' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Controllers/WPTermController.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'TypeRocket\\Database\\Connectors\\DatabaseConnector' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Database/Connectors/WordPressCoreDatabaseConnector.php:5
    • > PHP Warning
      Use of undefined constant TYPEROCKET_PATH - assumed 'TYPEROCKET_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/typerocket-ui/typerocket/config/paths.php on line 103
    • > PHP Fatal error
      Uncaught Error: Class 'TypeRocket\\Http\\Middleware\\Middleware' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Http/Middleware/CanManageOptions.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'TypeRocket\\Http\\Request' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Http/CustomRequest.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'TypeRocket\\Register\\Registrable' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Register/Page.php:14
    • > PHP Notice
      Undefined variable: form in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Extensions/views/typerocket-ui.php on line 5
    • > PHP Fatal error
      Uncaught Error: Interface 'TypeRocket\\Interfaces\\Formable' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Database/Results.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

typerocket-ui/typerocket-ui.php 92% from 13 tests

"TypeRocket UI" version 5.0.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.4.0" instead of "7.4")

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 detected25,483 lines of code in 295 files:
LanguageFilesBlank linesComment linesLines of code
PHP2845,71112,99422,631
JSON4002,828
JavaScript6113223
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.91
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces41
Interfaces8
Traits26
Classes234
▷ Abstract classes125.13%
▷ Concrete classes22294.87%
▷ Final classes00.00%
Methods1,927
▷ Static methods21811.31%
▷ Public methods1,73089.78%
▷ Protected methods19310.02%
▷ Private methods40.21%
Functions163
▷ Named functions63.68%
▷ Anonymous functions15796.32%
Constants74
▷ Global constants1824.32%
▷ Class constants5675.68%
▷ Public constants56100.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
3 compressed PNG files occupy 0.15MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
typerocket/wordpress/assets/typerocket/img/chosen-sprite@2x.png0.72KB0.83KB0.00%
typerocket/wordpress/assets/typerocket/img/chosen-sprite.png0.53KB0.88KB0.00%
screenshot-1.png154.28KB84.93KB▼ 44.95%