89% emarketplaceservices-live-shipping-rate

Code Review | EMS Live Shipping Rate Module

WordPress plugin EMS Live Shipping Rate Module scored89%from 54 tests.

About plugin

  • Plugin page: emarketplaceservi...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 12, 2020
  • Latest release: Jan 22, 2021
  • Number of updates: 8
  • Update frequency: every 28.0 days
  • Top authors: emarketplaceservices (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /884 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.64ms] Passed 4 tests

A check of server-side resources used by EMS Live Shipping Rate Module
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.80 ▼2.95
Dashboard /wp-admin3.34 ▲0.0360.95 ▲4.59
Posts /wp-admin/edit.php3.39 ▲0.0349.05 ▼4.61
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.55 ▼7.15
Media Library /wp-admin/upload.php3.26 ▲0.0336.00 ▲0.16

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by EMS Live Shipping Rate Module
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.021.88 ▲0.1049.10 ▲5.41
Dashboard /wp-admin2,195 ▲185.63 ▲0.0696.54 ▲4.9241.68 ▲1.96
Posts /wp-admin/edit.php2,103 ▲32.15 ▲0.1239.63 ▼0.9635.50 ▲0.07
Add New Post /wp-admin/post-new.php1,526 ▼222.92 ▲0.05677.91 ▲36.1557.81 ▲4.21
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.02108.41 ▲0.1244.40 ▼0.09

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

emarketplaceservices-live-shipping-rate/emarketplaceservices-live-shipping-rate.php 92% from 13 tests

The main PHP script in "EMS Live Shipping Rate Module" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected166 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12327166

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Functions2
▷ Named functions2100.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