Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲1.01ms] Passed 4 tests
Analyzing server-side resources used by Limousine Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 42.94 ▲1.21 |
Dashboard /wp-admin | 3.43 ▲0.13 | 50.03 ▲0.63 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 56.65 ▲3.48 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 97.00 ▼1.30 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 41.43 ▲4.52 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Limousine Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲131 | 13.66 ▼0.52 | 9.58 ▲7.50 | 42.85 ▼0.98 |
Dashboard /wp-admin | 2,215 ▲35 | 5.63 ▲0.01 | 90.30 ▼0.19 | 41.03 ▼0.16 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.99 ▲0.00 | 39.07 ▲2.27 | 34.61 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.57 ▲0.53 | 676.53 ▼29.08 | 55.74 ▼2.43 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.24 ▲0.05 | 110.89 ▲0.03 | 47.04 ▼2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/limousine-search/resources/views/front/shortcodes/iframe.php
- > /wp-content/plugins/limousine-search/resources/views/front/shortcodes/reservation.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/limousine-search/resources/views/admin/fields/text.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/limousine-search/resources/views/admin/main.php:4
- > PHP Notice
Undefined variable: url in wp-content/plugins/limousine-search/resources/views/front/shortcodes/iframe.php on line 5
- > PHP Notice
Undefined variable: pluginName in wp-content/plugins/limousine-search/resources/views/admin/fields/text.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== limousine-search ===
)
limousine-search/limousinesearch.php 85% from 13 tests
The main file in "Limousine Search" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("limousine-search.php" instead of "limousinesearch.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,290 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 269 | 427 | 1,208 |
JSON | 2 | 0 | 0 | 33 |
JavaScript | 2 | 11 | 29 | 32 |
CSS | 2 | 2 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 24 | 27.91% |
▷ Public methods | 74 | 86.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 13.95% |
Functions | 12 | |
▷ Named functions | 4 | 33.33% |
▷ Anonymous functions | 8 | 66.67% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin