83% easy-order-view

Code Review | Easy Order View

WordPress plugin Easy Order View scored83%from 54 tests.

About plugin

  • Plugin page: easy-order-view
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Sep 12, 2022
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: mozzoplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /482 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
This plugin's installer ran successfully

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

A check of server-side resources used by Easy Order View
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.08 ▼3.36
Dashboard /wp-admin3.31 ▲0.0046.44 ▼3.03
Posts /wp-admin/edit.php3.36 ▲0.0045.78 ▼2.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.89 ▼14.04
Media Library /wp-admin/upload.php3.23 ▲0.0034.21 ▲3.17
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius3.0023.45

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 171 new files
Database: no new tables, 10 new options
New WordPress options
fs_active_plugins
theysaidso_admin_options
fs_debug_mode
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
fs_accounts
fs_gdpr
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy Order View: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.19 ▼1.391.65 ▼0.4942.10 ▼5.59
Dashboard /wp-admin2,206 ▲184.86 ▼0.01110.53 ▼4.1744.35 ▼0.75
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0238.63 ▼0.4035.73 ▲2.78
Add New Post /wp-admin/post-new.php1,542 ▲918.36 ▼4.82592.63 ▼97.2051.94 ▼14.09
Media Library /wp-admin/upload.php1,388 ▲34.18 ▲0.0294.85 ▼16.2640.35 ▼7.76
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius280.440.103.67

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • fs_accounts
    • widget_recent-comments
    • theysaidso_admin_options
    • fs_debug_mode
    • fs_active_plugins
    • db_upgraded
    • can_compress_scripts
    • fs_gdpr

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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: neworder, order, notification, woocommerce

easy-order-view/easy-order-view.php 69% from 13 tests

The primary PHP file in "Easy Order View" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.3.8" instead of "7.0")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.2")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin31,866 lines of code in 128 files:
LanguageFilesBlank linesComment linesLines of code
PHP1127,35716,38131,031
CSS12913464
JavaScript45994371

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity86.68
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes47
▷ Abstract classes24.26%
▷ Concrete classes4595.74%
▷ Final classes00.00%
Methods1,149
▷ Static methods17315.06%
▷ Public methods80670.15%
▷ Protected methods151.31%
▷ Private methods32828.55%
Functions112
▷ Named functions112100.00%
▷ Anonymous functions00.00%
Constants125
▷ Global constants10080.00%
▷ Class constants2520.00%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/library/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
includes/library/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%