94% access

Code Review | Access

WordPress plugin Access scored 94% from 54 tests.

About plugin

  • Plugin page: access
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-3.7.0
  • WordPress version: 5.9.2
  • First release: Nov 4, 2013
  • Latest release: Nov 4, 2013
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: ryanve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,288 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼306.40ms] Passed 4 tests

Server-side resources used by Access
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0964.18 ▲15.34
Dashboard /wp-admin3.47 ▲0.0632.15 ▼1.47
Posts /wp-admin/edit.php3.70 ▲0.0537.25 ▼1.13
Add New Post /wp-admin/post-new.php6.93 ▼0.0494.59 ▼1,223.72
Media Library /wp-admin/upload.php3.35 ▲0.0524.76 ▲0.71
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=attachment3.3424.96
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=page3.3426.12
Access /wp-admin/edit-tags.php?taxonomy=access3.3423.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Access
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,778 ▲3616.21 ▲0.466.61 ▲0.022.26 ▲0.20
Dashboard /wp-admin2,907 ▲496.14 ▼0.15117.59 ▼19.61154.08 ▼5.76
Posts /wp-admin/edit.php2,727 ▲333.23 ▲0.0064.11 ▼1.41139.50 ▼4.06
Add New Post /wp-admin/post-new.php1,670 ▲916.58 ▲0.12400.99 ▲10.62154.22 ▲8.74
Media Library /wp-admin/upload.php1,713 ▲155.55 ▲0.02137.49 ▼9.10183.50 ▲1.95
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=attachment1,6342.7654.89124.69
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=page1,6372.7854.22119.48
Access /wp-admin/edit-tags.php?taxonomy=access1,6402.7854.93122.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/access/access.php:12

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === access === )
Please take inspiration from this readme.txt

access/access.php Passed 13 tests

Analyzing the main PHP file in "Access" version 0.5.1
84 characters long description:
Control content access via a taxonomy that accepts user IDs, roles, or capabilities.

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
Good job! No executable or dangerous file extensions detected145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161476
Markdown127069

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.73
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%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants0
▷ 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
There are no PNG files in this plugin