84% neoship

Code Review | Neoship

WordPress plugin Neoship scored84%from 54 tests.

About plugin

  • Plugin page: neoship
  • Plugin version: 3.3.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2020
  • Latest release: May 4, 2023
  • Number of updates: 68
  • Update frequency: every 18.1 days
  • Top authors: neoship (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,251 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Neoship
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.20 ▲4.45
Dashboard /wp-admin3.31 ▼0.0348.18 ▼12.86
Posts /wp-admin/edit.php3.36 ▲0.0144.59 ▼0.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.89 ▼0.47
Media Library /wp-admin/upload.php3.24 ▲0.0134.37 ▼1.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Neoship
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▲0.081.70 ▲0.1942.79 ▲1.81
Dashboard /wp-admin2,201 ▲275.55 ▲0.0399.07 ▲0.6644.45 ▲0.28
Posts /wp-admin/edit.php2,107 ▲102.01 ▼0.0033.62 ▼2.4035.65 ▲1.79
Add New Post /wp-admin/post-new.php1,532 ▲622.62 ▼0.64667.16 ▼53.4456.69 ▼1.40
Media Library /wp-admin/upload.php1,409 ▲94.24 ▲0.0398.65 ▼5.3642.87 ▼3.69

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/neoship/neoship.php

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: neoship, shipping

neoship/neoship.php 92% from 13 tests

The principal PHP file in "Neoship" v. 3.3.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "3.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,698 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP255061,3452,235
JavaScript54117252
PO File15682144
CSS313865
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity18.06
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods90
▷ Static methods22.22%
▷ Public methods7987.78%
▷ Protected methods00.00%
▷ Private methods1112.22%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants3
▷ Global constants3100.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
8 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/123kurier-logo.png1.85KB1.52KB▼ 17.63%
public/images/gls-logo.png12.93KB1.52KB▼ 88.26%
assets/icon-256x256.png3.71KB1.69KB▼ 54.58%
public/images/sps-logo.png10.96KB1.53KB▼ 86.02%
public/images/dpd-logo.png0.84KB0.84KB▼ 0.70%