93% advision-private-area

Code Review | Advision Private Area

WordPress plugin Advision Private Area scored 93% from 54 tests.

About plugin

  • Plugin page: advision-private-...
  • Plugin version: 0.0.2
  • PHP compatiblity: 4.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.9.2
  • First release: Jan 20, 2021
  • Latest release: Jan 22, 2021
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: marcopappalardo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 342 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Advision Private Area
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1758.13 ▲8.40
Dashboard /wp-admin3.52 ▲0.1133.85 ▼0.60
Posts /wp-admin/edit.php3.74 ▲0.1039.41 ▲1.51
Add New Post /wp-admin/post-new.php7.05 ▲0.0891.13 ▼1,175.87
Media Library /wp-admin/upload.php3.39 ▲0.1026.16 ▲3.57

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advision Private Area
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,829 ▲8516.21 ▲0.586.12 ▼0.702.44 ▲0.25
Dashboard /wp-admin2,928 ▲706.21 ▲0.04120.61 ▼12.81156.24 ▼10.27
Posts /wp-admin/edit.php2,723 ▲323.24 ▼0.0171.76 ▲5.54142.88 ▼2.03
Add New Post /wp-admin/post-new.php1,687 ▲2616.24 ▼0.12448.87 ▲16.76145.48 ▼11.01
Media Library /wp-admin/upload.php1,737 ▲365.58 ▲0.10137.62 ▼8.38184.35 ▼2.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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

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 take a closer look at 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 add_action() in wp-content/plugins/advision-private-area/adv-private-area.php:22

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 on the user side


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in advision-private-area/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

advision-private-area/adv-private-area.php 85% from 13 tests

Analyzing the main PHP file in "Advision Private Area" version 0.0.2
It is important to 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 ("advision-private-area.php" instead of "adv-private-area.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
Everything looks great! No dangerous files found in this plugin9,024 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.50
▷ Minimum class complexity16.00
▷ Maximum class complexity19.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin