84% demomentsomtres-wc-reorderzip

Code Review | DeMomentSomTres Woocommerce Reorder

WordPress plugin DeMomentSomTres Woocommerce Reorder scored 84% from 54 tests.

About plugin

  • Plugin page: demomentsomtres-w...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2015
  • Latest release: Feb 2, 2015
  • Number of updates: 2
  • Update frequency: every 45.0 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 648 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.17MB] [CPU: ▼12.13ms] Passed 4 tests

Server-side resources used by DeMomentSomTres Woocommerce Reorder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.81 ▼3.31
Dashboard /wp-admin3.20 ▼0.1135.37 ▼16.45
Posts /wp-admin/edit.php3.26 ▼0.0937.25 ▼12.71
Add New Post /wp-admin/post-new.php5.44 ▼0.4579.54 ▼14.90
Media Library /wp-admin/upload.php3.20 ▼0.0330.22 ▼4.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for DeMomentSomTres Woocommerce Reorder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.21 ▼1.161.57 ▼0.3736.77 ▼8.37
Dashboard /wp-admin2,214 ▲235.84 ▲1.01100.10 ▼9.7540.65 ▼7.26
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0139.67 ▲1.1539.45 ▲5.20
Add New Post /wp-admin/post-new.php1,525 ▼1123.46 ▲0.36687.34 ▼36.7851.60 ▲0.51
Media Library /wp-admin/upload.php1,393 ▲54.21 ▼0.0297.11 ▼14.7342.94 ▼5.82

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/demomentsomtres-wc-reorderzip/demomentsomtres-WC-reorder.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: woocommerce, delivery

demomentsomtres-wc-reorderzip/demomentsomtres-WC-reorder.php 85% from 13 tests

This is the main PHP file of "DeMomentSomTres Woocommerce Reorder" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("demomentsomtres-wc-reorderzip.php" instead of "demomentsomtres-WC-reorder.php")
  • Requires at least: Required version must match the one declared in readme.txt ("3.9.1" instead of "3.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1186198

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.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