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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.65ms] Passed 4 tests
Server-side resources used by Data access levels
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.35 ▼5.44 |
Dashboard /wp-admin | 3.42 ▲0.11 | 47.12 ▼1.56 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.14 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.87 ▼20.28 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.64 ▼3.31 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
dal_plugin_version |
widget_theysaidso_widget |
widget_recent-comments |
dal_post_types |
theysaidso_admin_options |
dal_settings |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Data access levels: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.65 ▼0.66 | 1.69 ▼0.18 | 38.95 ▼5.94 |
Dashboard /wp-admin | 2,210 ▲18 | 5.79 ▲0.82 | 98.63 ▼11.35 | 40.75 ▼3.13 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.01 ▼0.05 | 39.76 ▼1.04 | 36.23 ▼2.31 |
Add New Post /wp-admin/post-new.php | 6,802 ▲5,260 | 19.35 ▲1.16 | 901.77 ▲269.63 | 65.74 ▲1.87 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▼0.05 | 91.69 ▼11.76 | 39.74 ▼3.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/data-access-levels/lib/userfileds.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/data-access-levels/lib/dal_settings.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/data-access-levels/dal.php:57
- > PHP Warning
require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/data-access-levels/lib/restrictions.php on line 353
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/data-access-levels/lib/restrictions.php on line 353
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/data-access-levels/lib/restrictions.php on line 353
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/data-access-levels/lib/postfileds.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Plugin settings page), #2 (Access level column from the User panel (users.php)), #3 ("Access level" field on edit page)
data-access-levels/dal.php 85% from 13 tests
Analyzing the main PHP file in "Data access levels" version 1.1.1
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("data-access-levels.php" instead of "dal.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
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 plugin694 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 306 | 270 | 612 |
PO File | 1 | 23 | 29 | 64 |
JavaScript | 1 | 8 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 47.20KB | 18.45KB | ▼ 60.92% |
screenshot-2.png | 19.97KB | 8.38KB | ▼ 58.05% |
screenshot-3.png | 4.46KB | 2.32KB | ▼ 48.14% |