Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.04ms] Passed 4 tests
Server-side resources used by Max Access
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.02 ▲3.41 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.09 ▼3.06 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.63 ▼4.23 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.89 ▼15.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.10 ▲2.51 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
license_activated |
oada_activation_token |
can_compress_scripts |
error_message |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Max Access
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲47 | 13.27 ▼1.02 | 2.03 ▲0.12 | 42.25 ▼5.79 |
Dashboard /wp-admin | 2,239 ▲39 | 4.87 ▼0.01 | 99.30 ▼1.48 | 37.54 ▼4.07 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.03 ▲0.00 | 38.69 ▼2.44 | 35.41 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,566 ▲35 | 23.18 ▲0.06 | 659.42 ▲10.69 | 68.13 ▲15.05 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.20 ▼0.06 | 96.82 ▼16.90 | 44.55 ▼3.66 |
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 9 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- oada_activation_token
- error_message
- theysaidso_admin_options
- widget_recent-posts
- license_activated
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'MaxAccess\\Traits\\Singleton' not found in wp-content/plugins/max-access/src/Plugin.php on line 7
- > PHP Fatal error
Trait 'MaxAccess\\Traits\\Singleton' not found in wp-content/plugins/max-access/src/Admin.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== max-access ===
)
max-access/maxaccess.php 85% from 13 tests
"Max Access" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("max-access.php" instead of "maxaccess.php")
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
Everything looks great! No dangerous files found in this plugin847 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 280 | 175 | 774 |
Markdown | 2 | 23 | 0 | 53 |
JSON | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 14.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 16 | 28.07% |
▷ Public methods | 51 | 89.47% |
▷ Protected methods | 1 | 1.75% |
▷ Private methods | 5 | 8.77% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/assets/maxaccessicon.png | 6.25KB | 0.85KB | ▼ 86.41% |
src/assets/maxaccesslogo.png | 16.92KB | 7.59KB | ▼ 55.17% |