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
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.57ms] Passed 4 tests
An overview of server-side resources used by LSX Tour Operator Team
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 42.68 ▲3.47 |
Dashboard /wp-admin | 3.56 ▲0.26 | 48.97 ▼0.85 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.88 ▲3.57 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 84.48 ▼10.82 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 38.07 ▲1.94 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
LSX Tour Operator Team: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.33 ▼1.28 | 4.47 ▲2.34 | 46.80 ▲0.49 |
Dashboard /wp-admin | 2,206 ▲21 | 5.84 ▲0.96 | 99.35 ▼8.25 | 38.50 ▼8.58 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.04 ▼0.01 | 34.30 ▲0.01 | 37.46 ▲2.39 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 23.20 ▲0.01 | 652.86 ▼47.58 | 50.60 ▼7.78 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.29 ▲0.05 | 96.63 ▼14.04 | 41.54 ▼6.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LSX_TO_Team' not found in wp-content/plugins/tour-operator-team/classes/class-lsx-to-team-admin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/tour-operator-team/templates/content-widget-team.php:12
- > PHP Fatal error
Uncaught Error: Class 'LSX_TO_Schema_Graph_Piece' not found in wp-content/plugins/tour-operator-team/classes/class-lsx-to-team-schema.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tour-operator-team/includes/post-types/config-team.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator-team/templates/archive-team.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function term_description() in wp-content/plugins/tour-operator-team/templates/content-role.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function lsx_entry_before() in wp-content/plugins/tour-operator-team/templates/content-team.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator-team/templates/taxonomy-role.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tour-operator-team/includes/metaboxes/config-team.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator-team/templates/single-team.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #5, #6 in tour-operator-team/assets to your readme.txt
tour-operator-team/to-team.php 77% from 13 tests
The main PHP script in "LSX Tour Operator Team" version 1.2.7 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tour-operator-team.php" instead of "to-team.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 231 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected2,002 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 389 | 581 | 1,596 |
YAML | 4 | 5 | 0 | 185 |
PO File | 1 | 65 | 67 | 143 |
XML | 1 | 13 | 9 | 44 |
JavaScript | 1 | 5 | 12 | 34 |
PHP code Passed 2 tests
This is a very shot review of 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.52 |
Average class complexity | 34.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 58 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
There were not PNG files found in your plugin