68% woo-sendle-api

Code Review | Woo Sendle API

WordPress plugin Woo Sendle API scored68%from 54 tests.

About plugin

  • Plugin page: woo-sendle-api
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.0
  • WordPress version: 6.3.1
  • First release: Jun 22, 2018
  • Latest release: Nov 16, 2018
  • Number of updates: 17
  • Update frequency: every 8.7 days
  • Top authors: oldlabel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /748 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.00MB] [CPU: ▼3.34ms] Passed 4 tests

A check of server-side resources used by Woo Sendle API
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.64 ▼7.02
Dashboard /wp-admin3.31 ▲0.0142.23 ▼10.33
Posts /wp-admin/edit.php3.36 ▲0.0046.46 ▲1.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.25 ▲2.41
Media Library /wp-admin/upload.php3.24 ▲0.0037.21 ▲4.29

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Woo Sendle API
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.30 ▼1.301.82 ▼0.0841.10 ▼1.57
Dashboard /wp-admin2,206 ▲185.91 ▲0.10106.13 ▼7.9038.01 ▼4.52
Posts /wp-admin/edit.php2,086 ▼62.06 ▲0.0638.90 ▼0.4637.69 ▲3.45
Add New Post /wp-admin/post-new.php1,536 ▲2223.09 ▲5.35696.51 ▼3.9854.84 ▲4.35
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.00100.76 ▼4.1346.42 ▲3.25

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woo-sendle-api/includes/class.woosendle.api.php
    • > /wp-content/plugins/woo-sendle-api/includes/class.woosendle.settings.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/woo-sendle-api/includes/templates/booking-modal.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: package, freight, parcel, woocommerce, send...

woo-sendle-api/woo-sendle-api.php Passed 13 tests

The principal PHP file in "Woo Sendle API" v. 1.0.4 is loaded by WordPress automatically on each request
52 characters long description:
Woocommerce Sendle API Plugin by oldlabel web design

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
  • Do not distribute dangerous files with your plugin
    • .com - Command File in Windows
      • wp-content/plugins/woo-sendle-api/includes/images/feathericons.com
1,229 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP5143362846
CSS12325184
JavaScript13931149
Markdown115040
SVG100010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity37.00
▷ Minimum class complexity3.00
▷ Maximum class complexity71.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin