Benchmarks
Plugin footprint 83% from 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.03MB] [CPU: ▼3.16ms] Passed 4 tests
An overview of server-side resources used by WP Access Codes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.03 | 42.02 ▲0.35 |
Dashboard /wp-admin | 3.38 ▲0.03 | 41.76 ▼16.38 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 52.09 ▲5.76 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.03 | 99.30 ▲0.21 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 41.96 ▲3.20 |
WP Access Codes /wp-admin/options-general.php?page=wp-access-codes | 3.24 | 33.33 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Access Codes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.34 ▲0.10 | 1.80 ▼0.00 | 43.25 ▲4.63 |
Dashboard /wp-admin | 2,199 ▲22 | 5.59 ▲0.03 | 86.96 ▼6.82 | 38.79 ▼6.67 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.05 | 40.58 ▲2.10 | 35.39 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.66 ▲0.76 | 700.35 ▲24.27 | 59.21 ▲1.86 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.17 ▼0.13 | 96.70 ▼17.47 | 46.29 ▼2.21 |
WP Access Codes /wp-admin/options-general.php?page=wp-access-codes | 957 | 2.02 | 23.72 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-access-codes
- > Notice in wp-content/plugins/wp-access-codes/wp-access-codes.php+132
Undefined index: access_code
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-access-codes/front-end.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-access-codes/wp-access-codes.php:84
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-access-codes/wp-access-codes.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function wpac_wp_role_dropdown() in wp-content/plugins/wp-access-codes/options-page.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function wpac_get_access_code_object() in wp-content/plugins/wp-access-codes/edit-page.php:2
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-access-codes/wp-access-codes.php on line 27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-access-codes ===
) - Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
wp-access-codes/wp-access-codes.php Passed 13 tests
The main PHP script in "WP Access Codes" version 0.9 is automatically included on every request by WordPress
135 characters long description:
Allows registered users to be assigned a WordPress role or to be added to a Press Permit group based on which access code they entered.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin365 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 122 | 44 | 365 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin