Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function wpdb::escape is deprecated since version 3.6.0! Use wpdb::prepare() or esc_sql() instead.
Server metrics [RAM: ▼1.23MB] [CPU: ▼41.42ms] Passed 4 tests
An overview of server-side resources used by Banti Album Proofing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 13.57 ▼28.48 |
Dashboard /wp-admin | 2.78 ▼0.52 | 15.36 ▼30.58 |
Posts /wp-admin/edit.php | 2.78 ▼0.57 | 17.09 ▼27.70 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 16.34 ▼78.92 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 16.17 ▼15.93 |
Banti /wp-admin/admin.php?page=banti-album-proofing/banti-album-proofing.php | 2.78 | 15.77 |
Help /wp-admin/admin.php?page=help | 2.78 | 15.76 |
Settings /wp-admin/admin.php?page=settings | 2.78 | 15.35 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_banti_settings_tbl |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Banti Album Proofing
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.27 ▼1.01 | 1.67 ▼0.01 | 44.36 ▲5.52 |
Dashboard /wp-admin | 2,239 ▲50 | 4.94 ▼0.01 | 97.62 ▼22.79 | 93.27 ▲50.92 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.03 ▼0.01 | 35.22 ▼1.92 | 31.14 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 23.65 ▲0.36 | 744.22 ▲14.38 | 50.75 ▼5.77 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.22 ▼0.01 | 97.50 ▲0.10 | 47.56 ▲2.83 |
Banti /wp-admin/admin.php?page=banti-album-proofing/banti-album-proofing.php | 873 | 2.05 | 24.34 | 27.54 |
Help /wp-admin/admin.php?page=help | 891 | 2.01 | 24.39 | 26.52 |
Settings /wp-admin/admin.php?page=settings | 849 | 2.06 | 27.02 | 29.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/banti-album-proofing/banti-album-proofing.php+127
Trying to get property 'username' of non-object
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Notice in wp-content/plugins/banti-album-proofing/banti-admin-settings.php+35
Trying to get property 'username' of non-object
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Notice in wp-content/plugins/banti-album-proofing/banti-admin-settings.php+39
Trying to get property 'password' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Notice in wp-content/plugins/banti-album-proofing/banti-admin-settings.php+6
Undefined index: username
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/banti-album-proofing/banti-album-help.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/banti-album-proofing/banti-admin-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/banti-album-proofing/banti-album-proofing.php:36
- > PHP Warning
Use of undefined constant BANTI_PLUGIN_URL - assumed 'BANTI_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/banti-album-proofing/banti-album-help.php on line 50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
banti-album-proofing/banti-album-proofing.php 92% from 13 tests
The main file in "Banti Album Proofing" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 292 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected206 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 53 | 180 |
JavaScript | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add-new-page.png | 5.01KB | 4.18KB | ▼ 16.49% |
js/images/icon-16.png | 1.58KB | 0.62KB | ▼ 60.66% |
images/icon-18.png | 1.74KB | 0.88KB | ▼ 49.83% |
images/add-banti-editor.png | 2.63KB | 1.78KB | ▼ 32.24% |