94% access-monitor

Code Review | Access Monitor

WordPress plugin Access Monitor scored 94% from 54 tests.

About plugin

  • Plugin page: access-monitor
  • Plugin version: 1.4.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.7
  • WordPress version: 5.9.2
  • First release: Jan 8, 2015
  • Latest release: Mar 22, 2021
  • Number of updates: 60
  • Update frequency: every 43.1 days
  • Top authors: joedolson (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 22,254 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼308.95ms] Passed 4 tests

This is a short check of server-side resources used by Access Monitor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.3758.65 ▲8.29
Dashboard /wp-admin3.62 ▲0.2227.04 ▼7.02
Posts /wp-admin/edit.php3.74 ▲0.1027.72 ▼7.83
Add New Post /wp-admin/post-new.php6.33 ▼0.6476.44 ▼1,213.00
Media Library /wp-admin/upload.php3.63 ▲0.3324.45 ▼7.96
Accessibility Reports /wp-admin/edit.php?post_type=tenon-report3.7127.00
Add New Report /wp-admin/edit.php?post_type=tenon-report&page=am-report-page3.6127.21
Report Tags /wp-admin/edit-tags.php?taxonomy=tenon-report-tag&post_type=tenon-report3.6224.72
Access Monitor Settings /wp-admin/edit.php?post_type=tenon-report&page=am-support-page3.6124.85

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Access Monitor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,874 ▲13216.27 ▲0.936.50 ▲0.372.88 ▲0.56
Dashboard /wp-admin2,969 ▲1116.23 ▼0.07118.90 ▼18.88155.06 ▼7.99
Posts /wp-admin/edit.php2,768 ▲743.29 ▼0.0866.07 ▲2.36144.63 ▲1.16
Add New Post /wp-admin/post-new.php1,739 ▼2121.77 ▼0.51434.80 ▲11.32166.71 ▲9.73
Media Library /wp-admin/upload.php1,776 ▲785.63 ▲0.09127.81 ▼19.67179.71 ▼15.08
Accessibility Reports /wp-admin/edit.php?post_type=tenon-report1,4773.2063.98115.16
Add New Report /wp-admin/edit.php?post_type=tenon-report&page=am-report-page1,8754.08105.80214.41
Report Tags /wp-admin/edit-tags.php?taxonomy=tenon-report-tag&post_type=tenon-report1,7013.2958.62113.42
Access Monitor Settings /wp-admin/edit.php?post_type=tenon-report&page=am-support-page1,6183.86103.76183.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tenon-report&page=am-support-page
    • > Notice in wp-content/plugins/access-monitor/access-monitor.php+457
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tenon-report&page=am-report-page
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: section508, wcag, a11y, tenon, accessibility

access-monitor/access-monitor.php 85% from 13 tests

The principal PHP file in "Access Monitor" v. 1.4.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lang")
  • Domain Path: The domain path must begin with a forward slash character ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,692 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions61100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/tenon-logo-no-border-light.png3.89KB2.41KB▼ 38.10%