84% 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 scored84%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: 6.3.1
  • 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 /495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by AccessWise - Power to restrict your website and it's content via Age Gate, Force Login, Disable Right click
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.03 ▼2.98
Dashboard /wp-admin3.32 ▲0.0145.35 ▼4.48
Posts /wp-admin/edit.php3.37 ▲0.0141.60 ▼5.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.70 ▼14.40
Media Library /wp-admin/upload.php3.24 ▲0.0136.84 ▲4.06
Force Login /wp-admin/admin.php?page=accesswise-force-login3.2131.74
Disable Right Click /wp-admin/admin.php?page=accesswise-disable-right-click3.2131.28
Age Gate /wp-admin/admin.php?page=engramium-accesswise-settings3.2332.87

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by AccessWise - Power to restrict your website and it's content via Age Gate, Force Login, Disable Right click
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.70 ▼0.621.86 ▲0.0840.00 ▼3.78
Dashboard /wp-admin2,237 ▲525.87 ▲0.97111.48 ▼8.3040.34 ▼3.61
Posts /wp-admin/edit.php2,120 ▲312.00 ▼0.0233.99 ▼4.5834.73 ▼2.55
Add New Post /wp-admin/post-new.php1,539 ▲417.46 ▼5.49654.70 ▲10.3352.00 ▲5.33
Media Library /wp-admin/upload.php1,422 ▲344.25 ▲0.0196.06 ▼11.6043.61 ▲0.01
Force Login /wp-admin/admin.php?page=accesswise-force-login8272.0725.9624.83
Disable Right Click /wp-admin/admin.php?page=accesswise-disable-right-click8761.7023.9026.69
Age Gate /wp-admin/admin.php?page=engramium-accesswise-settings1,1543.0444.1437.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix 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 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: registered only, copy protection, disable right click, age verification, force login

accesswise/accesswise.php 92% from 13 tests

Analyzing the main PHP file in "AccessWise - Power to restrict your website and it's content via Age Gate, Force Login, Disable Right click" version 0.2
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected470 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP58964430
CSS12025
JavaScript14015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin