84% delivery-rate-for-sagawa-express

Code Review | Delivery rate for Sagawa express

WordPress plugin Delivery rate for Sagawa express scored84%from 54 tests.

About plugin

  • Plugin page: delivery-rate-for...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2015
  • Latest release: May 16, 2020
  • Number of updates: 5
  • Update frequency: every 332.8 days
  • Top authors: RESTA (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Delivery rate for Sagawa express
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.57 ▲3.59
Dashboard /wp-admin3.31 ▲0.0051.83 ▲2.74
Posts /wp-admin/edit.php3.36 ▲0.0045.62 ▼3.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.43 ▼6.87
Media Library /wp-admin/upload.php3.23 ▲0.0033.18 ▲0.96

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Delivery rate for Sagawa express: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.08 ▼0.532.00 ▲0.1645.48 ▲2.79
Dashboard /wp-admin2,195 ▲155.65 ▲0.0191.49 ▲6.3142.03 ▲4.82
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0134.85 ▼0.5532.89 ▼4.47
Add New Post /wp-admin/post-new.php1,526 ▼323.60 ▲0.24665.90 ▼7.0354.41 ▼11.72
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0194.44 ▼17.9141.13 ▼5.58

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/delivery-rate-for-sagawa-express/delivery-rate-for-sagawa.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Admin Panel Shipping.), #2 (The contents of the cart.)
You can look at the official readme.txt

delivery-rate-for-sagawa-express/delivery-rate-for-sagawa.php 92% from 13 tests

"Delivery rate for Sagawa express" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("delivery-rate-for-sagawa-express.php" instead of "delivery-rate-for-sagawa.php")

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
Good job! No executable or dangerous file extensions detected321 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11149243
PO File1384778

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity10.60
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png9.17KB4.66KB▼ 49.14%
screenshot-1.png38.79KB14.42KB▼ 62.82%