Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼10.44ms] Passed 4 tests
An overview of server-side resources used by Business Listing
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.70 ▼2.82 |
Dashboard /wp-admin | 3.44 ▲0.10 | 56.75 ▼10.71 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 53.15 ▼0.29 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.25 ▼27.92 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.32 ▲1.44 |
Add Region /wp-admin/admin.php?page=business-listings-add-region | 3.31 | 34.17 |
Options /wp-admin/admin.php?page=business-listings-options | 3.35 | 38.84 |
Regions /wp-admin/admin.php?page=business-listings-regions | 3.37 | 35.62 |
List /wp-admin/admin.php?page=business-listings | 3.36 | 38.89 |
Categories /wp-admin/admin.php?page=business-listings-categories | 3.37 | 38.58 |
Add/Edit /wp-admin/admin.php?page=business-listings-edit | 3.38 | 36.06 |
Add Category /wp-admin/admin.php?page=business-listings-add-category | 3.31 | 35.28 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_otgblist_categories |
wp_otgblist_regions |
wp_otgblist_listings |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Business Listing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,082 ▲321 | 15.47 ▲1.53 | 5.75 ▲4.14 | 40.96 ▼0.05 |
Dashboard /wp-admin | 2,376 ▲202 | 6.49 ▲0.84 | 124.71 ▲34.36 | 39.76 ▼4.81 |
Posts /wp-admin/edit.php | 2,307 ▲207 | 3.75 ▲1.77 | 57.02 ▲20.03 | 29.80 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,563 ▲34 | 23.22 ▲0.06 | 657.55 ▲7.29 | 35.08 ▼22.26 |
Media Library /wp-admin/upload.php | 1,441 ▲47 | 4.34 ▲0.16 | 93.95 ▼10.11 | 49.77 ▲1.94 |
Add Region /wp-admin/admin.php?page=business-listings-add-region | 719 | 1.92 | 21.37 | 17.85 |
Options /wp-admin/admin.php?page=business-listings-options | 1,090 | 3.32 | 50.43 | 28.73 |
Regions /wp-admin/admin.php?page=business-listings-regions | 1,248 | 3.92 | 66.19 | 40.08 |
List /wp-admin/admin.php?page=business-listings | 1,236 | 4.00 | 72.64 | 34.97 |
Categories /wp-admin/admin.php?page=business-listings-categories | 1,245 | 3.95 | 62.71 | 31.83 |
Add/Edit /wp-admin/admin.php?page=business-listings-edit | 1,072 | 3.28 | 47.90 | 26.20 |
Add Category /wp-admin/admin.php?page=business-listings-add-category | 719 | 1.73 | 22.92 | 17.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_otgblist_listings
- wp_otgblist_regions
- wp_otgblist_categories
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=business-listings-edit
- > Notice in wp-content/plugins/business-listing/helpers/validation_helper.php+34
Undefined index: listing_id
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/business-listing/views/about.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function otgblist_display_messages() in wp-content/plugins/business-listing/views/listing_edit.php:12
- > PHP Warning
Use of undefined constant OTGBLIST_ROOT_PATH - assumed 'OTGBLIST_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/business-listing/views/options.php on line 13
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/business-listing/business-listing.php on line 15
- > PHP Warning
include(): Failed opening 'OTGBLIST_ROOT_PATHviews/about.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/business-listing/views/options.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/business-listing/views/options.php:16
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/business-listing/business-listing.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function otgblist_display_messages() in wp-content/plugins/business-listing/views/categories.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function otgblist_display_messages() in wp-content/plugins/business-listing/views/list.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/business-listing/business-listing.php:18
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/business-listing/business-listing.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 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
5 plugin tags: business, shortcode, thumbnail, business directory, listings
business-listing/business-listing.php Passed 13 tests
The main PHP file in "Business Listing" ver. 2.1.2 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
List businesses in tiles with a photo and link in a random order
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
There were no executable files found in this plugin1,371 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 140 | 370 | 1,124 |
CSS | 3 | 18 | 24 | 177 |
JavaScript | 3 | 14 | 49 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/sort_both.png | 0.20KB | 0.29KB | 0.00% |