10% sendpress-for-woocommerce

Code Review | SendPress For WooCommerce

WordPress plugin SendPress For WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: sendpress-for-woo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Mar 4, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: brewlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,427 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SendPress_Woo_Signup::plugin_activation() should not be called statically

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

This is a short check of server-side resources used by SendPress For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.91 ▼4.19
Dashboard /wp-admin3.31 ▼0.0348.86 ▼12.37
Posts /wp-admin/edit.php3.36 ▲0.0150.91 ▼4.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.77 ▼5.52
Media Library /wp-admin/upload.php3.23 ▲0.0133.53 ▼2.83

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SendPress For WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.65 ▼0.651.59 ▼0.2344.14 ▲1.75
Dashboard /wp-admin2,221 ▲364.83 ▼1.02113.88 ▲7.3941.73 ▼0.58
Posts /wp-admin/edit.php2,103 ▲141.99 ▼0.0640.72 ▲6.0134.81 ▼6.27
Add New Post /wp-admin/post-new.php1,529 ▲517.70 ▼5.63639.39 ▲43.7858.25 ▲3.20
Media Library /wp-admin/upload.php1,406 ▲154.20 ▼0.0298.76 ▼1.2845.05 ▲2.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SendPress_Woo_Signup::plugin_deactivation() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sendpress-for-woocommerce/sendpress-for-woocommerce.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

sendpress-for-woocommerce/sendpress-for-woocommerce.php Passed 13 tests

This is the main PHP file of "SendPress For WooCommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
A plugin that adds an option to sign up for SendPress lists on WooCommerce checkout

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24634123

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin