Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼4.18ms] Passed 4 tests
A check of server-side resources used by WordPress Access Areas
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.87 ▼6.41 |
Dashboard /wp-admin | 3.87 ▲0.57 | 55.57 ▼3.33 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 56.82 ▲4.38 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.60 | 96.37 ▼11.25 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 39.35 ▲4.29 |
Access Areas /wp-admin/users.php?page=user_labels | 3.88 | 41.80 |
Access Settings /wp-admin/options-general.php?page=wpaa_settings | 3.81 | 40.43 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_disclosure_userlabels |
New WordPress options |
---|
accessareas_version |
wpaa_fallback_page |
wpaa_default_behavior |
widget_recent-comments |
widget_theysaidso_widget |
wpaa_default_post_status |
can_compress_scripts |
wpaa_default_caps |
theysaidso_admin_options |
wpaa_enable_assign_cap |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Access Areas
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 13.13 ▼1.62 | 2.01 ▲0.06 | 41.96 ▼2.51 |
Dashboard /wp-admin | 2,211 ▲23 | 4.88 ▼0.98 | 104.18 ▲0.05 | 41.42 ▲0.75 |
Posts /wp-admin/edit.php | 2,498 ▲409 | 2.00 ▼0.14 | 37.91 ▼1.92 | 33.01 ▼3.23 |
Add New Post /wp-admin/post-new.php | 6,489 ▲4,956 | 18.73 ▼4.49 | 897.58 ▲232.43 | 63.82 ▼2.09 |
Media Library /wp-admin/upload.php | 1,398 ▲16 | 4.23 ▲0.00 | 103.00 ▲1.73 | 45.46 ▲0.48 |
Access Areas /wp-admin/users.php?page=user_labels | 927 | 2.05 | 27.46 | 26.67 |
Access Settings /wp-admin/options-general.php?page=wpaa_settings | 1,575 | 2.20 | 22.86 | 30.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-access-areas/inc/class-wpaa_install.php+59
Non-static method WPAA_Install::_uninstall_custom_caps() should not be called statically
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- accessareas_version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-access-areas/inc/class-accessareas_list_table.php:16
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/class-wp-list-table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-access-areas/inc/class-accessareas_list_table.php on line 8
- > PHP Warning
include_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-access-areas/inc/class-accessareas_list_table.php on line 8
- > PHP Warning
Creating default object from empty value in wp-content/plugins/wp-access-areas/inc/class-wpaa_core.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined method stdClass::set_prefix() in wp-content/plugins/wp-access-areas/inc/class-wpaa_core.php:26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-access-areas/inc/class-accessareas_list_table.php on line 8
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% 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
6 plugin tags: security, role, capability, editor, user...
wp-access-areas/wp-access-areas.php 92% from 13 tests
Analyzing the main PHP file in "WordPress Access Areas" version 1.5.19
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,878 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 459 | 388 | 2,931 |
PO File | 3 | 302 | 559 | 704 |
CSS | 1 | 14 | 6 | 132 |
JavaScript | 3 | 6 | 5 | 111 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 47.30 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 127 | 93.38% |
▷ Public methods | 114 | 83.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 16.18% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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