84% easymanage

Code Review | Easymanage

WordPress plugin Easymanage scored 84% from 54 tests.

About plugin

  • Plugin page: easymanage
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.7.2
  • WordPress version: 5.9.2
  • First release: Sep 5, 2019
  • Latest release: Dec 1, 2021
  • Number of updates: 9
  • Update frequency: every 90.9 days
  • Top authors: easymanagebiz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 842 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼303.56ms] Passed 4 tests

A check of server-side resources used by Easymanage
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1459.87 ▲0.41
Dashboard /wp-admin3.51 ▲0.1133.33 ▼2.90
Posts /wp-admin/edit.php3.74 ▲0.1038.07 ▼1.01
Add New Post /wp-admin/post-new.php7.04 ▲0.0795.43 ▼1,210.75
Media Library /wp-admin/upload.php3.45 ▲0.1626.87 ▲1.21
/wp-admin/admin.php?page=easymanage3.3624.28

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 1 new option
New WordPress options
easymanage_version

Browser metrics Passed 4 tests

Easymanage: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,772 ▲1815.91 ▼0.215.66 ▼0.692.49 ▼0.33
Dashboard /wp-admin2,878 ▲246.08 ▼0.08126.21 ▼13.65195.27 ▼18.55
Posts /wp-admin/edit.php2,688 ▼63.23 ▼0.0163.92 ▼1.63144.80 ▲1.68
Add New Post /wp-admin/post-new.php1,711 ▲5121.20 ▲3.90438.83 ▲20.03191.56 ▲37.67
Media Library /wp-admin/upload.php1,692 ▼55.52 ▼0.03150.89 ▼7.76228.75 ▲23.14
/wp-admin/admin.php?page=easymanage1,75611.53245.28186.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • easymanage_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easymanage/easymanage.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerce to google sheet, woocommerce, export customers, export products, google sheet...

easymanage/easymanage.php 85% from 13 tests

The primary PHP file in "Easymanage" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Requires at least: Required version must match the one declared in readme.txt ("5.2.0" instead of "3.6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,680 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP22679842,595
CSS18055
Markdown14030

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.06
▷ Minimum class complexity2.00
▷ Maximum class complexity97.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods192
▷ Static methods52.60%
▷ Public methods11358.85%
▷ Protected methods7438.54%
▷ Private methods52.60%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants74
▷ Global constants68.11%
▷ Class constants6891.89%
▷ Public constants68100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected