84% woo-postnord-tracking-form

Code Review | Woo postnord Tracking Form

WordPress plugin Woo postnord Tracking Form scored84%from 54 tests.

About plugin

  • Plugin page: woo-postnord-trac...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6.31+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-4.9.6
  • WordPress version: 6.3.1
  • First release: May 26, 2018
  • Latest release: May 26, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mnording10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /629 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.93ms] Passed 4 tests

This is a short check of server-side resources used by Woo postnord Tracking Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.15 ▲6.93
Dashboard /wp-admin3.35 ▲0.0544.92 ▼5.62
Posts /wp-admin/edit.php3.47 ▲0.1150.23 ▼2.70
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.87 ▼4.45
Media Library /wp-admin/upload.php3.27 ▲0.0538.15 ▲1.04

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo postnord Tracking Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.101.58 ▼0.3041.03 ▲1.07
Dashboard /wp-admin2,195 ▲155.64 ▼0.0692.48 ▼1.3238.52 ▼9.27
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0541.63 ▲1.1136.26 ▼2.74
Add New Post /wp-admin/post-new.php1,526 ▼323.56 ▲0.51688.35 ▲58.9251.77 ▼2.17
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.02100.32 ▼3.3843.27 ▼0.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 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/woo-postnord-tracking-form/functions.php:141

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

woo-postnord-tracking-form/functions.php 92% from 13 tests

The main PHP script in "Woo postnord Tracking Form" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-postnord-tracking-form.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin275 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22150210
PO File1161646
JavaScript11019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity6.00
▷ Minimum class complexity4.00
▷ Maximum class complexity8.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1263.16%
▷ Protected methods00.00%
▷ Private methods736.84%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin