Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.55MB] [CPU: ▼32.33ms] Passed 4 tests
A check of server-side resources used by Better Admin Pointers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 46.38 ▲2.69 |
Dashboard /wp-admin | 3.39 ▲0.09 | 29.15 ▼21.13 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 28.33 ▼21.95 |
Add New Post /wp-admin/post-new.php | 3.39 ▼2.49 | 29.75 ▼74.49 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 24.64 ▼11.76 |
All Pointers /wp-admin/edit.php?post_type=sbap_pointer | 3.39 | 28.23 |
BAP Options /wp-admin/edit.php?post_type=sbap_pointer&page=sbap_options | 3.39 | 35.25 |
Add New /wp-admin/post-new.php?post_type=sbap_pointer | 3.39 | 23.63 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Better Admin Pointers
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲127 | 13.31 ▼1.34 | 4.64 ▲2.58 | 41.77 ▼2.03 |
Dashboard /wp-admin | 2,245 ▲57 | 5.82 ▲0.93 | 97.16 ▼9.10 | 39.71 ▼1.72 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.09 ▲0.11 | 41.58 ▲2.30 | 34.79 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,547 ▲15 | 23.35 ▲0.22 | 675.02 ▲57.54 | 51.25 ▼5.15 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.21 ▲0.01 | 96.29 ▼6.69 | 48.54 ▲2.46 |
All Pointers /wp-admin/edit.php?post_type=sbap_pointer | 1,098 | 2.00 | 33.96 | 29.25 |
BAP Options /wp-admin/edit.php?post_type=sbap_pointer&page=sbap_options | 898 | 2.09 | 23.73 | 26.10 |
Add New /wp-admin/post-new.php?post_type=sbap_pointer | 2,361 | 7.59 | 187.74 | 63.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/better-admin-pointers/better-admin-pointers.php+608
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 13 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sbap_pointer
- > Notice in wp-content/plugins/better-admin-pointers/better-admin-pointers.php+608
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/better-admin-pointers/better-admin-pointers.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-admin-pointers/CMB2/init.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-admin-pointers/sbap-options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-admin-pointers/CMB2/example-functions.php:68
- > 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 97% 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 need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The config page for my example pointer.), #2 (The example pointer in action.)
better-admin-pointers/better-admin-pointers.php Passed 13 tests
"Better Admin Pointers" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Admin pointers for WP Admin. These will work on any post type or page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected14,969 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 2,022 | 2,048 | 8,500 |
PHP | 17 | 1,217 | 2,430 | 4,013 |
PO File | 5 | 491 | 619 | 1,170 |
JavaScript | 4 | 228 | 147 | 927 |
Markdown | 2 | 127 | 0 | 359 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 42.47 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 227 | |
▷ Static methods | 22 | 9.69% |
▷ Public methods | 215 | 94.71% |
▷ Protected methods | 9 | 3.96% |
▷ Private methods | 3 | 1.32% |
Functions | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.38MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
CMB2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
screenshot-1.png | 172.76KB | 65.73KB | ▼ 61.95% |
screenshot-2.png | 194.64KB | 61.85KB | ▼ 68.23% |
CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |