94% wcik-pennsylvania-shipping

Code Review | Wcik Pennsylvania Shipping

WordPress plugin Wcik Pennsylvania Shipping scored 94% from 54 tests.

About plugin

  • Plugin page: wcik-pennsylvania...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.1
  • WordPress version: 5.8.1
  • First release: Oct 12, 2018
  • Latest release: Feb 16, 2021
  • Number of updates: 9
  • Update frequency: every 95.3 days
  • Top authors: awanhrp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 292 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼145.98ms] Passed 4 tests

This is a short check of server-side resources used by Wcik Pennsylvania Shipping
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0130.75 ▼2.85
Dashboard /wp-admin3.07 ▲0.0252.77 ▼0.51
Posts /wp-admin/edit.php3.12 ▲0.0246.22 ▲8.70
Add New Post /wp-admin/post-new.php5.43 ▼0.0092.09 ▼571.96
Media Library /wp-admin/upload.php3.02 ▲0.0130.72 ▼8.61

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Wcik Pennsylvania Shipping: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲8215.80 ▲0.278.43 ▲0.3350.52 ▲0.14
Dashboard /wp-admin2,967 ▲395.93 ▼0.11148.20 ▼5.33110.01 ▼9.20
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0064.29 ▼10.7493.79 ▼1.63
Add New Post /wp-admin/post-new.php1,683 ▲10218.81 ▼1.47370.40 ▼27.17112.53 ▼2.27
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.02163.83 ▼4.03123.89 ▲3.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wcik-pennsylvania-shipping/index.php:37

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Manufacturers)
The official readme.txt might help

wcik-pennsylvania-shipping/index.php 92% from 13 tests

"Wcik Pennsylvania Shipping" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wcik-pennsylvania-shipping.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1434599

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin