84% cuboh-storefront-button

Code Review | Cuboh Storefront Button

WordPress plugin Cuboh Storefront Button scored 84% from 54 tests.

About plugin

  • Plugin page: cuboh-storefront-...
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0
  • WordPress version: 6.3.1
  • First release: Jun 28, 2022
  • Latest release: Jul 14, 2022
  • Number of updates: 14
  • Update frequency: every 1.1 days
  • Top authors: cubohsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by Cuboh Storefront Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.82 ▼9.54
Dashboard /wp-admin3.33 ▲0.0248.49 ▼7.01
Posts /wp-admin/edit.php3.38 ▲0.0250.15 ▲8.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.46 ▲5.92
Media Library /wp-admin/upload.php3.25 ▲0.0238.49 ▲2.39

Server storage [IO: ▲0.02MB] [DB: ▲1.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Cuboh Storefront Button
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.451.73 ▼0.1239.81 ▼7.33
Dashboard /wp-admin2,206 ▲514.86 ▼0.82111.82 ▲8.5841.56 ▼0.08
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0740.42 ▲2.4334.63 ▲1.46
Add New Post /wp-admin/post-new.php6,583 ▲5,03629.26 ▲10.96852.06 ▲257.4859.52 ▼16.69
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.1096.23 ▼2.0746.73 ▲5.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cuboh-storefront-button/cuboh-storefront-button.php:26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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: The official readme.txt might help

cuboh-storefront-button/cuboh-storefront-button.php Passed 13 tests

"Cuboh Storefront Button" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Takes customers directly to your Cuboh storefront.

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
Good job! No executable or dangerous file extensions detected141 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JSON100133
PHP21206
CSS1001
JavaScript1001

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.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin