Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.23MB] [CPU: ▼25.52ms] Passed 4 tests
An overview of server-side resources used by Custom Business Locations
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.73 ▼1.75 |
Dashboard /wp-admin | 3.07 ▼0.27 | 24.73 ▼32.57 |
Posts /wp-admin/edit.php | 3.21 ▼0.15 | 29.42 ▼16.79 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.43 | 65.47 ▼42.44 |
Media Library /wp-admin/upload.php | 3.16 ▼0.07 | 24.59 ▼10.27 |
Custom Business Locations /wp-admin/options-general.php?page=custom_business_locations | 3.19 | 29.60 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: no new tables, 8 new options
New WordPress options |
---|
cbl_plugin_version |
widget_recent-comments |
widget_recent-posts |
cbl_plugin_options |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Custom Business Locations: 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,946 ▲200 | 14.60 ▲0.18 | 28.42 ▲26.78 | 36.84 ▼2.84 |
Dashboard /wp-admin | 2,210 ▲19 | 5.77 ▼0.12 | 101.84 ▲3.32 | 36.98 ▼6.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.01 | 33.10 ▼6.80 | 33.90 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.23 ▼5.04 | 615.39 ▲24.80 | 57.47 ▼4.85 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.18 ▼0.02 | 93.92 ▼6.82 | 42.87 ▼3.99 |
Custom Business Locations /wp-admin/options-general.php?page=custom_business_locations | 913 | 3.62 | 69.35 | 49.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- cbl_plugin_version
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- cbl_plugin_options
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=custom_business_locations
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=custom_business_locations
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 2× 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/custom-business-locations/library/php/frontend/frontend-init.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-business-locations/library/php/admin/admin-init.php:49
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=custom_business_locations
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&sensor=true&ver=6.3.1 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/options-general.php?page=custom_business_locations
- > Javascript (severe) in unknown
/wp-content/plugins/custom-business-locations/library/js/admin.min.js?ver=6.3.1 0:665 Uncaught TypeError: e(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== custom-business-locations ===
) - Screenshots: Screenshot #1 (Custom Google map display with custom notices, hours of operation, and contact information.) image missing
custom-business-locations/custom-business-locations.php Passed 13 tests
"Custom Business Locations" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Add your business's locations and display a custom Google map with a shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,075 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 132 | 262 | 891 |
JavaScript | 11 | 185 | 71 | 873 |
Sass | 32 | 787 | 2,544 | 299 |
Ruby | 1 | 8 | 35 | 10 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.75 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.41MB with 0.28MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 423.54KB | 136.88KB | ▼ 67.68% |