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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.09 | 64.18 ▲15.34 |
Dashboard /wp-admin | 3.47 ▲0.06 | 32.15 ▼1.47 |
Posts /wp-admin/edit.php | 3.70 ▲0.05 | 37.25 ▼1.13 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 94.59 ▼1,223.72 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 24.76 ▲0.71 |
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=attachment | 3.34 | 24.96 |
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=page | 3.34 | 26.12 |
Access /wp-admin/edit-tags.php?taxonomy=access | 3.34 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,778 ▲36 | 16.21 ▲0.46 | 6.61 ▲0.02 | 2.26 ▲0.20 |
Dashboard /wp-admin | 2,907 ▲49 | 6.14 ▼0.15 | 117.59 ▼19.61 | 154.08 ▼5.76 |
Posts /wp-admin/edit.php | 2,727 ▲33 | 3.23 ▲0.00 | 64.11 ▼1.41 | 139.50 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,670 ▲9 | 16.58 ▲0.12 | 400.99 ▲10.62 | 154.22 ▲8.74 |
Media Library /wp-admin/upload.php | 1,713 ▲15 | 5.55 ▲0.02 | 137.49 ▼9.10 | 183.50 ▲1.95 |
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=attachment | 1,634 | 2.76 | 54.89 | 124.69 |
Access /wp-admin/edit-tags.php?taxonomy=access&post_type=page | 1,637 | 2.78 | 54.22 | 119.48 |
Access /wp-admin/edit-tags.php?taxonomy=access | 1,640 | 2.78 | 54.93 | 122.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 14 | 76 |
Markdown | 1 | 27 | 0 | 69 |
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 code | 0.73 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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