94% accesswise

Code Review | AccessWise - Power to restrict your website and it's content via Age Gate, Force Login, Disable Right click

WordPress plugin AccessWise - Power to restrict your website and it's content via Age Gate, Force Login, Disable Right click scored 94% from 54 tests.

About plugin

  • Plugin page: accesswise
  • Plugin version: 0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.7.2
  • WordPress version: 5.9.2
  • First release: Jan 26, 2021
  • Latest release: Jul 6, 2021
  • Number of updates: 4
  • Update frequency: every 40.5 days
  • Top authors: engramium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 231 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by AccessWise - Power to restrict your website and it's content via Age Gate, Force Login, Disable Right click
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0863.73 ▲8.73
Dashboard /wp-admin3.49 ▲0.0842.91 ▲6.57
Posts /wp-admin/edit.php3.72 ▲0.0846.09 ▲1.01
Add New Post /wp-admin/post-new.php6.96 ▼0.0199.91 ▼1,170.82
Media Library /wp-admin/upload.php3.38 ▲0.0830.13 ▲2.47
Disable Right Click /wp-admin/admin.php?page=accesswise-disable-right-click3.3424.64
Age Gate /wp-admin/admin.php?page=engramium-accesswise-settings3.3738.93
Force Login /wp-admin/admin.php?page=accesswise-force-login3.3429.71

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AccessWise - Power to restrict your website and it's content via Age Gate, Force Login, Disable Right click
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,834 ▲8016.28 ▲0.786.61 ▼0.183.51 ▲0.57
Dashboard /wp-admin2,932 ▲716.10 ▼0.10117.31 ▼13.50154.99 ▼10.18
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0164.99 ▼7.15134.37 ▼22.20
Add New Post /wp-admin/post-new.php1,686 ▼7616.49 ▼5.09399.19 ▼55.32157.71 ▼2.88
Media Library /wp-admin/upload.php1,734 ▲335.54 ▲0.01141.14 ▲2.44187.82 ▲4.14
Disable Right Click /wp-admin/admin.php?page=accesswise-disable-right-click1,1482.4259.38110.97
Age Gate /wp-admin/admin.php?page=engramium-accesswise-settings1,5294.2971.45130.35
Force Login /wp-admin/admin.php?page=accesswise-force-login1,0792.6358.83116.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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 take a closer look at the following
  • 3× 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/accesswise/accesswise_options.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accesswise/accesswise_options.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accesswise/accesswise_force_login.php:69

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: age verification, force login, disable right click, registered only, copy protection

accesswise/accesswise.php 92% from 13 tests

The main PHP file in "AccessWise - Power to restrict your website and it's content via Age Gate, Force Login, Disable Right click" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin470 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP58964430
CSS12025
JavaScript14015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected