Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼9.71ms] Passed 4 tests
This is a short check of server-side resources used by Manara Business Locator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.11 ▼5.70 |
Dashboard /wp-admin | 3.46 ▲0.16 | 44.22 ▼3.24 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 43.50 ▼3.10 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 76.38 ▼26.80 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 32.61 ▼1.96 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 679 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_latitude_manara_business_locator |
wp_setting_manara_business_locator |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Manara Business Locator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.28 ▼1.39 | 4.35 ▲2.36 | 34.46 ▼9.00 |
Dashboard /wp-admin | 2,224 ▲36 | 5.94 ▲1.03 | 104.84 ▼0.14 | 83.12 ▲36.79 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.01 ▼0.05 | 37.98 ▼2.18 | 36.17 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 22.86 ▼0.65 | 766.35 ▲170.46 | 58.71 ▲7.07 |
Media Library /wp-admin/upload.php | 1,400 ▲18 | 4.19 ▼0.04 | 96.60 ▼2.12 | 77.25 ▲36.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The uninstall procedure failed, leaving 2 tables in the database
- wp_latitude_manara_business_locator
- wp_setting_manara_business_locator
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/manara-business-locator/manara_business_locator.php
- 220× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Matches.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/lib/Twig/Node/SetTemp.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/lib/Twig/TokenParser/Macro.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/lib/Twig/Error/Loader.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_IntegrationTestCase' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/test/Twig/Tests/IntegrationTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/test/Twig/Tests/Node/IncludeTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/lib/Twig/Node/Body.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_BaseNodeVisitor' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/lib/Twig/NodeVisitor/Sandbox.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/lib/Twig/TokenParser/Import.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TestInterface' not found in wp-content/plugins/manara-business-locator/vendor/twig/twig/lib/Twig/Test.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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: latitude, google maps, business, locator
manara-business-locator/manara_business_locator.php 85% from 13 tests
"Manara Business Locator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("manara-business-locator.php" instead of "manara_business_locator.php")
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin23,054 lines of code in 415 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 274 | 3,352 | 6,223 | 14,270 |
reStructuredText | 88 | 2,283 | 2,030 | 3,153 |
CSS | 2 | 414 | 13 | 2,470 |
JavaScript | 14 | 608 | 302 | 1,804 |
C | 1 | 161 | 174 | 792 |
Twig | 17 | 63 | 1 | 328 |
JSON | 3 | 2 | 0 | 129 |
YAML | 1 | 7 | 1 | 31 |
XML | 1 | 2 | 0 | 23 |
HTML | 11 | 0 | 0 | 17 |
SQL | 1 | 8 | 15 | 17 |
C/C++ Header | 1 | 7 | 13 | 15 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 22 | |
Traits | 0 | |
Classes | 271 | |
▷ Abstract classes | 14 | 5.17% |
▷ Concrete classes | 257 | 94.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,270 | |
▷ Static methods | 13 | 1.02% |
▷ Public methods | 1,117 | 87.95% |
▷ Protected methods | 129 | 10.16% |
▷ Private methods | 24 | 1.89% |
Functions | 65 | |
▷ Named functions | 62 | 95.38% |
▷ Anonymous functions | 3 | 4.62% |
Constants | 48 | |
▷ Global constants | 4 | 8.33% |
▷ Class constants | 44 | 91.67% |
▷ Public constants | 44 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Application/public/images/look.png | 0.59KB | 0.44KB | ▼ 25.91% |