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.01MB] [CPU: ▼3.25ms] Passed 4 tests
This is a short check of server-side resources used by Local Business Details
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.55 ▼7.25 |
Dashboard /wp-admin | 3.32 ▼0.02 | 51.65 ▼10.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 64.08 ▲17.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.87 ▲2.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.53 ▲2.21 |
Local Business /wp-admin/options-general.php?page=local-business | 3.21 | 31.46 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Local Business Details
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.47 ▲0.16 | 2.15 ▲0.31 | 42.19 ▼4.51 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▼0.10 | 103.13 ▼13.97 | 40.22 ▼2.73 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.00 ▼0.00 | 40.95 ▲2.97 | 34.22 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.48 ▲0.26 | 608.06 ▼64.63 | 58.43 ▲2.95 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▲0.04 | 97.23 ▼21.70 | 46.99 ▲2.77 |
Local Business /wp-admin/options-general.php?page=local-business | 812 | 2.03 | 23.53 | 28.60 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-business-details/inc/lbd-info.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/local-business-details/local-biz-details.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: local business, phone call, contact button, click to call
local-business-details/local-biz-details.php 92% from 13 tests
Analyzing the main PHP file in "Local Business Details" version 0.1.0
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("local-business-details.php" instead of "local-biz-details.php")
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
There were no executable files found in this plugin354 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 65 | 178 | 230 |
CSS | 2 | 4 | 2 | 114 |
JavaScript | 1 | 2 | 2 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected