83% admin-previous-and-next-order-edit-links-for-woocommerce

Code Review | Admin Previous and Next Order Edit Links for Woocommerce

WordPress plugin Admin Previous and Next Order Edit Links for Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: admin-previous-an...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 10, 2023
  • Latest release: Oct 31, 2023
  • Number of updates: 19
  • Update frequency: every 12.4 days
  • Top authors: cylas (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /324 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Admin Previous and Next Order Edit Links for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.93 ▼4.04
Dashboard /wp-admin3.31 ▼0.0347.89 ▼18.16
Posts /wp-admin/edit.php3.37 ▲0.0153.76 ▲4.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.57 ▲1.21
Media Library /wp-admin/upload.php3.24 ▲0.0038.51 ▲3.37

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Admin Previous and Next Order Edit Links for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.23 ▲0.021.99 ▲0.4438.93 ▲1.41
Dashboard /wp-admin2,192 ▲155.50 ▼0.0589.69 ▼11.7538.07 ▼5.70
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0240.58 ▲2.7435.80 ▲0.70
Add New Post /wp-admin/post-new.php1,531 ▲323.15 ▼0.01645.41 ▼42.7662.93 ▲12.20
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0395.49 ▼0.1143.29 ▼1.39

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

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

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/admin-previous-and-next-order-edit-links-for-woocommerce/public/partials/previous-next-edit-order-links-for-woocommerce-public-display.php
    • > /wp-content/plugins/admin-previous-and-next-order-edit-links-for-woocommerce/admin/partials/previous-next-edit-order-links-for-woocommerce-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

admin-previous-and-next-order-edit-links-for-woocommerce/previous-next-edit-order-links-for-woocommerce.php 77% from 13 tests

"Admin Previous and Next Order Edit Links for Woocommerce" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-previous-and-next-order-edit-links-for-woocommerce.php" instead of "previous-next-edit-order-links-for-woocommerce.php")

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
Success! There were no dangerous files found in this plugin323 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12137537242
CSS25865
JavaScript252716

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity2.86
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin