Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/transport-and-business-locator/transport_business_locator.php+501
Methods with the same name as their class will not be constructors in a future version of PHP; transport_business_locator has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼54.83ms] Passed 4 tests
This is a short check of server-side resources used by Transport and Business Locator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 4.59 ▼44.46 |
Dashboard /wp-admin | 2.14 ▼1.16 | 5.45 ▼48.60 |
Posts /wp-admin/edit.php | 2.14 ▼1.21 | 5.45 ▼41.45 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.74 | 9.37 ▼84.82 |
Media Library /wp-admin/upload.php | 2.14 ▼1.08 | 4.90 ▼38.65 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_transport_business_locator |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Transport and Business Locator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.20 ▼0.16 | 1.63 ▼0.31 | 40.77 ▼1.82 |
Dashboard /wp-admin | 2,211 ▲34 | 5.63 ▼0.03 | 90.68 ▼9.05 | 40.74 ▼1.53 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.98 ▼0.13 | 39.60 ▲3.01 | 35.08 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 22.99 ▼0.08 | 610.87 ▼77.41 | 47.48 ▼12.79 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.28 ▲0.11 | 100.16 ▼13.20 | 44.71 ▼2.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/transport-and-business-locator/transport_business_locator.php+501
Methods with the same name as their class will not be constructors in a future version of PHP; transport_business_locator has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_transport_business_locator
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/transport-and-business-locator/transport_business_locator.php:375
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
7 plugin tags: church locator, place locator, atm locator, pharmacy locator, mosque locator...
transport-and-business-locator/transport_business_locator.php 85% from 13 tests
The primary PHP file in "Transport and Business Locator" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 212 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("transport-and-business-locator.php" instead of "transport_business_locator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected531 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 98 | 123 | 402 |
JavaScript | 1 | 22 | 22 | 129 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin