83% advision-private-area

Code Review | Advision Private Area

WordPress plugin Advision Private Area scored83%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: 6.3.1
  • 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 /618 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.41ms] Passed 4 tests

Analyzing server-side resources used by Advision Private Area
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0743.99 ▲3.41
Dashboard /wp-admin3.36 ▲0.0656.10 ▲4.46
Posts /wp-admin/edit.php3.41 ▲0.0549.02 ▲1.58
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.00 ▼9.91
Media Library /wp-admin/upload.php3.28 ▲0.0534.67 ▼4.72

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Advision Private Area
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.38 ▲0.101.97 ▲0.2243.96 ▼0.24
Dashboard /wp-admin2,227 ▲505.64 ▲0.0290.64 ▼5.3140.41 ▼0.28
Posts /wp-admin/edit.php2,130 ▲302.01 ▼0.0336.20 ▲0.1635.16 ▲2.16
Add New Post /wp-admin/post-new.php1,552 ▲2623.66 ▲0.67659.84 ▼42.5958.51 ▲5.73
Media Library /wp-admin/upload.php1,424 ▲214.25 ▲0.0398.74 ▼0.8345.55 ▲1.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in advision-private-area/assets to your readme.txt
The official readme.txt is a good inspiration

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

The main PHP file in "Advision Private Area" ver. 0.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advision-private-area.php" instead of "adv-private-area.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress 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

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin