89% products-and-orders-last-modified-for-wc-rest-api

Code Review | Products and Orders Last Modified for WC REST API

WordPress plugin Products and Orders Last Modified for WC REST API scored89%from 54 tests.

About plugin

  • Plugin page: products-and-orde...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.9
  • WordPress version: 6.3.1
  • First release: Feb 9, 2021
  • Latest release: Feb 3, 2022
  • Number of updates: 6
  • Update frequency: every 59.8 days
  • Top authors: m0h4mm4d (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Products and Orders Last Modified for WC REST API
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.91 ▼3.12
Dashboard /wp-admin3.32 ▼0.0344.07 ▼17.78
Posts /wp-admin/edit.php3.37 ▲0.0149.39 ▲0.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.90 ▼7.10
Media Library /wp-admin/upload.php3.24 ▲0.0131.44 ▼2.11

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Products and Orders Last Modified for WC REST API
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.171.53 ▼0.2237.17 ▼2.27
Dashboard /wp-admin2,195 ▲185.62 ▼0.0590.26 ▼2.0241.76 ▼2.56
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0640.98 ▲5.9637.30 ▲1.59
Add New Post /wp-admin/post-new.php1,531 ▼623.11 ▲5.13632.97 ▼8.6947.46 ▼23.76
Media Library /wp-admin/upload.php1,403 ▲64.18 ▲0.0194.44 ▼7.8640.93 ▼2.72

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

products-and-orders-last-modified-for-wc-rest-api/Products-and-Orders-Last-Modified-for-WC-REST-API.php 85% from 13 tests

"Products and Orders Last Modified for WC REST API" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("products-and-orders-last-modified-for-wc-rest-api.php" instead of "Products-and-Orders-Last-Modified-for-WC-REST-API.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.9")

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
Success! There were no dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151322

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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