83% advanced-customer-account

Code Review | Advanced Customer Account

WordPress plugin Advanced Customer Account scored83%from 54 tests.

About plugin

  • Plugin page: advanced-customer...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 30, 2022
  • Latest release: Aug 12, 2023
  • Number of updates: 3
  • Update frequency: every 157.0 days
  • Top authors: nalam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /253 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.50ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Customer Account
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.31 ▼7.53
Dashboard /wp-admin3.32 ▲0.0149.64 ▲0.87
Posts /wp-admin/edit.php3.37 ▲0.0150.08 ▲2.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.15 ▼12.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.43 ▲1.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Customer Account
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.514.59 ▲2.7241.07 ▼2.54
Dashboard /wp-admin2,206 ▲215.78 ▼0.0399.95 ▼8.1039.89 ▼4.61
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0040.35 ▲1.7134.27 ▼0.33
Add New Post /wp-admin/post-new.php1,533 ▲1423.28 ▲0.12604.83 ▼73.1552.31 ▼6.90
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.1492.40 ▼13.4140.49 ▼4.66

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-customer-account/inc/account-page.php:102

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Advanced Customer Account page), #2 (Advanced Customer Account menu position)
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

advanced-customer-account/advanced-customer-account.php 92% from 13 tests

Analyzing the main PHP file in "Advanced Customer Account" version 1.0.0
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin158 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24493136
CSS10622

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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