74% ezycount-accounting

Code Review | EZYcount Accounting

WordPress plugin EZYcount Accounting scored74%from 54 tests.

About plugin

  • Plugin page: ezycount-accounting
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 31, 2020
  • Latest release: Jun 2, 2021
  • Number of updates: 5
  • Update frequency: every 40.6 days
  • Top authors: ezycount (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /452 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.61ms] Passed 4 tests

Analyzing server-side resources used by EZYcount Accounting
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1546.34 ▲5.45
Dashboard /wp-admin3.32 ▲0.0250.52 ▲1.94
Posts /wp-admin/edit.php3.37 ▲0.0250.57 ▲1.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0298.97 ▼11.53
Media Library /wp-admin/upload.php3.24 ▲0.0238.96 ▲5.92
EZYcount Log /wp-admin/admin.php?page=ezycount-accounting/ezycount_acc.php/ezyerrors.php3.2635.05
EZYcount /wp-admin/admin.php?page=ezycount-accounting3.2752.30

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

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

Browser metrics Passed 4 tests

EZYcount Accounting: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.24 ▼1.061.64 ▼0.0544.96 ▲0.50
Dashboard /wp-admin2,235 ▲474.80 ▼0.30108.23 ▼6.0041.30 ▼0.47
Posts /wp-admin/edit.php2,118 ▲262.05 ▲0.0539.20 ▼1.1134.97 ▼1.78
Add New Post /wp-admin/post-new.php1,552 ▲2423.33 ▲5.06661.30 ▲64.1756.87 ▲11.03
Media Library /wp-admin/upload.php1,417 ▲294.22 ▼0.0495.13 ▼5.0241.59 ▼2.23
EZYcount Log /wp-admin/admin.php?page=ezycount-accounting/ezycount_acc.php/ezyerrors.php7752.0324.7124.54
EZYcount /wp-admin/admin.php?page=ezycount-accounting9232.0327.8829.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_ezycount_acc_response_detail
    • wp_ezycount_acc_detail_setting
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ezycount-accounting/viewonclick.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/ezycount-accounting/view.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ezycount-accounting/orderplaced.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ezycount-accounting/ezyerrors.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ezycount-accounting/ezycount_acc.php:12
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ezycount-accounting/ezyerrors.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: business, accounting, ecommerce, woocommerce, ezycount

ezycount-accounting/ezycount_acc.php 92% from 13 tests

Analyzing the main PHP file in "EZYcount Accounting" version 1.1
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ezycount-accounting.php" instead of "ezycount_acc.php")

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
Good job! No executable or dangerous file extensions detected701 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP513828687
CSS12014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin