89% swe-easy-orders-export

Code Review | SWE Easy Orders Export

WordPress plugin SWE Easy Orders Export scored89%from 54 tests.

About plugin

  • Plugin page: swe-easy-orders-e...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Dec 25, 2020
  • Latest release: Dec 25, 2020
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: sanjaywp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /299 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.02MB] [CPU: ▼6.27ms] Passed 4 tests

Server-side resources used by SWE Easy Orders Export
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.48 ▼1.99
Dashboard /wp-admin3.33 ▲0.0345.90 ▼12.31
Posts /wp-admin/edit.php3.38 ▲0.0349.62 ▲1.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.03 ▼10.67
Media Library /wp-admin/upload.php3.25 ▲0.0234.75 ▼0.11

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for SWE Easy Orders Export
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.51 ▼0.791.63 ▼0.5840.55 ▼8.63
Dashboard /wp-admin2,209 ▲215.91 ▲0.12104.70 ▼13.2640.00 ▼6.86
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0035.94 ▼4.5434.29 ▼3.20
Add New Post /wp-admin/post-new.php1,533 ▼223.04 ▼0.52611.92 ▼20.5045.25 ▼5.17
Media Library /wp-admin/upload.php1,391 ▼04.29 ▲0.07100.15 ▲2.9640.60 ▼4.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt might help

swe-easy-orders-export/swe-easy-export-orders.php 85% from 13 tests

Analyzing the main PHP file in "SWE Easy Orders Export" version 1.1.0
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("swe-easy-orders-export.php" instead of "swe-easy-export-orders.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected207 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1817207

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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