83% flat-shipping-rates-by-eniture-technology

Code Review | Flat Shipping Rates by Eniture Technology

WordPress plugin Flat Shipping Rates by Eniture Technology scored83%from 54 tests.

About plugin

  • Plugin page: flat-shipping-rat...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 28, 2023
  • Latest release: May 25, 2023
  • Number of updates: 4
  • Update frequency: every 19.7 days
  • Top authors: enituretechnology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /111 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 gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.41ms] Passed 4 tests

An overview of server-side resources used by Flat Shipping Rates by Eniture Technology
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0934.65 ▼2.76
Dashboard /wp-admin3.39 ▲0.0942.51 ▼4.24
Posts /wp-admin/edit.php3.51 ▲0.1546.20 ▼3.95
Add New Post /wp-admin/post-new.php5.99 ▲0.1180.28 ▼18.67
Media Library /wp-admin/upload.php3.32 ▲0.0933.62 ▼1.53

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flat Shipping Rates by Eniture Technology
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.24 ▼1.374.55 ▲2.8941.26 ▼3.80
Dashboard /wp-admin2,214 ▲234.86 ▼0.0398.70 ▼2.6639.21 ▼3.07
Posts /wp-admin/edit.php2,094 ▲52.03 ▼0.0240.44 ▼0.8638.23 ▲0.20
Add New Post /wp-admin/post-new.php1,542 ▲523.48 ▲5.34669.70 ▲16.7751.47 ▼24.43
Media Library /wp-admin/upload.php1,396 ▲84.20 ▲0.02100.04 ▲0.1744.31 ▼0.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/flat-shipping-rates-by-eniture-technology/flat-shipping-rates-by-eniture-technology.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can take inspiration from this readme.txt

flat-shipping-rates-by-eniture-technology/flat-shipping-rates-by-eniture-technology.php 92% from 13 tests

"Flat Shipping Rates by Eniture Technology" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin452 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP160111425
JavaScript11427

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.00
▷ Minimum class complexity8.00
▷ Maximum class complexity16.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods423.53%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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