89% integrate-np-shipping

Code Review | Integrate NP Shipping

WordPress plugin Integrate NP Shipping scored89%from 54 tests.

About plugin

  • Plugin page: integrate-np-ship...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2017
  • Latest release: Jan 19, 2019
  • Number of updates: 5
  • Update frequency: every 134.2 days
  • Top authors: luganos (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /3,151 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.33ms] Passed 4 tests

A check of server-side resources used by Integrate NP Shipping
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.42 ▼6.08
Dashboard /wp-admin3.36 ▲0.0647.80 ▼5.51
Posts /wp-admin/edit.php3.48 ▲0.1252.63 ▲2.89
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.74 ▼21.40
Media Library /wp-admin/upload.php3.29 ▲0.0637.55 ▼4.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Integrate NP Shipping
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.101.67 ▲0.1241.16 ▲2.91
Dashboard /wp-admin2,192 ▲175.54 ▼0.2086.84 ▼19.0639.61 ▼4.24
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0138.94 ▲2.6135.25 ▼3.97
Add New Post /wp-admin/post-new.php1,526 ▼523.15 ▲0.19653.92 ▲18.9955.65 ▲2.37
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0495.45 ▼9.2743.10 ▲0.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: No tags were detected
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

integrate-np-shipping/integrate-np-shipping.php 85% from 13 tests

The principal PHP file in "Integrate NP Shipping" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path folder does not exist ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected632 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1128119362
JavaScript1697207
PO File1131540
CSS12023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods763.64%
▷ Protected methods00.00%
▷ Private methods436.36%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin