74% kurve

Code Review | Kurve

WordPress plugin Kurve scored74%from 54 tests.

About plugin

  • Plugin page: kurve
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Sep 14, 2021
  • Latest release: Sep 15, 2021
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: lazycodelab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /312 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.45ms] Passed 4 tests

A check of server-side resources used by Kurve
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.14 ▲2.79
Dashboard /wp-admin3.31 ▲0.0048.67 ▼1.38
Posts /wp-admin/edit.php3.36 ▲0.0043.85 ▼6.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.15 ▼12.94
Media Library /wp-admin/upload.php3.23 ▲0.0035.98 ▲3.29

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Kurve
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▲0.041.76 ▲0.2144.97 ▲0.23
Dashboard /wp-admin2,195 ▲155.63 ▼0.0493.44 ▲4.4942.85 ▼2.95
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0233.56 ▼2.6036.32 ▲1.23
Add New Post /wp-admin/post-new.php1,526 ▼023.30 ▼0.19683.88 ▲15.3554.28 ▲1.22
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0494.47 ▼4.0042.92 ▼0.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'KRV\\Controllers\\API\\Routes\\Reports\\ReportsRouteController' not found in wp-content/plugins/kurve/framework/Controllers/API/Routes/Reports/TaxesReportRouteController.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'KRV\\Controllers\\API\\Routes\\Reports\\ReportsRouteController' not found in wp-content/plugins/kurve/framework/Controllers/API/Routes/Reports/SourcesReportRouteController.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'KRV\\Controllers\\API\\Routes\\Reports\\ReportsRouteController' not found in wp-content/plugins/kurve/framework/Controllers/API/Routes/Reports/ProfitReportRouteController.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'UAParser\\Result\\AbstractVersionedSoftware' not found in wp-content/plugins/kurve/vendor/ua-parser/uap-php/src/Result/OperatingSystem.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'UAParser\\Result\\AbstractVersionedSoftware' not found in wp-content/plugins/kurve/vendor/ua-parser/uap-php/src/Result/UserAgent.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'UAParser\\Exception\\DomainException' not found in wp-content/plugins/kurve/vendor/ua-parser/uap-php/src/Exception/FetcherException.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'UAParser\\Result\\AbstractSoftware' not found in wp-content/plugins/kurve/vendor/ua-parser/uap-php/src/Result/AbstractVersionedSoftware.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/kurve/vendor/ua-parser/uap-php/src/Command/FetchCommand.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'KRV\\Controllers\\API\\Routes\\Reports\\ReportsRouteController' not found in wp-content/plugins/kurve/framework/Controllers/API/Routes/Reports/DevicesReportRouteController.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'UAParser\\AbstractParser' not found in wp-content/plugins/kurve/vendor/ua-parser/uap-php/src/DeviceParser.php:15

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

kurve/kurve.php 92% from 13 tests

The main PHP file in "Kurve" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/kurve/vendor/bin/uaparser.bat
10,352 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
PHP668701,3339,731
Markdown3990317
JSON300251
Bourne Shell111029
XML10015
DOS Batch1004
CSS1002
SVG2002
JavaScript1011

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.32
Average class complexity7.62
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces14
Interfaces2
Traits1
Classes50
▷ Abstract classes612.00%
▷ Concrete classes4488.00%
▷ Final classes511.36%
Methods202
▷ Static methods5326.24%
▷ Public methods14873.27%
▷ Protected methods2210.89%
▷ Private methods3215.84%
Functions19
▷ Named functions421.05%
▷ Anonymous functions1578.95%
Constants17
▷ Global constants1482.35%
▷ Class constants317.65%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin