Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲2.17MB] [CPU: ▲15.01ms] Passed 4 tests
Server-side resources used by LabTheme Companion
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.54 ▲2.08 | 52.31 ▲14.16 |
Dashboard /wp-admin | 5.51 ▲2.21 | 64.75 ▲12.94 |
Posts /wp-admin/edit.php | 5.60 ▲2.24 | 79.14 ▲31.13 |
Add New Post /wp-admin/post-new.php | 9.26 ▲3.37 | 111.28 ▲13.12 |
Media Library /wp-admin/upload.php | 5.38 ▲2.15 | 55.08 ▲19.83 |
Add New /wp-admin/post-new.php?post_type=lab-client | 9.25 | 106.53 |
Add New /wp-admin/post-new.php?post_type=lab-service | 9.25 | 109.65 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=lab_portfolio_categories&post_type=lab-portfolio | 5.40 | 56.17 |
Client Categories /wp-admin/edit-tags.php?taxonomy=lab_client_categories&post_type=lab-client | 5.40 | 52.82 |
Event Categories /wp-admin/edit-tags.php?taxonomy=lab_event_categories&post_type=lab-event | 5.40 | 54.56 |
All Teams /wp-admin/edit.php?post_type=lab-team | 5.47 | 63.99 |
Service Categories /wp-admin/edit-tags.php?taxonomy=lab_service_categories&post_type=lab-service | 5.40 | 51.86 |
Archive Description /wp-admin/edit.php?post_type=lab-portfolio&page=lab-portfolio-description | 5.42 | 52.55 |
Testimonial Tag /wp-admin/edit-tags.php?taxonomy=lab_testimonial_tags&post_type=lab-testimonial | 5.40 | 52.95 |
All Testimonials /wp-admin/edit.php?post_type=lab-testimonial | 5.47 | 57.80 |
Server storage [IO: ▲8.77MB] [DB: ▲0.03MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 142 new files
Database: no new tables, 27 new options
New WordPress options |
---|
widget_labtheme_instagram_widget |
widget_theysaidso_widget |
widget_labtheme_description_widget |
widget_labtheme_author_bio_widget |
widget_labtheme_companion_cta_widget |
widget_labtheme_icon_text_widget |
widget_labtheme_category_post_widget |
widget_labtheme_featured_page_post_widget |
widget_recent-posts |
widget_labtheme_author_post_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for LabTheme Companion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 6,702 ▲3,956 | 21.31 ▲7.00 | 20.93 ▲19.41 | 37.39 ▼3.81 |
Dashboard /wp-admin | 4,096 ▲1,905 | 6.51 ▲1.65 | 232.24 ▲126.01 | 45.66 ▼0.07 |
Posts /wp-admin/edit.php | 5,845 ▲3,753 | 5.77 ▲3.76 | 133.39 ▲95.94 | 37.99 ▲5.03 |
Add New Post /wp-admin/post-new.php | 3,516 ▲1,995 | 25.25 ▲2.16 | 789.98 ▲119.36 | 37.81 ▼18.91 |
Media Library /wp-admin/upload.php | 4,978 ▲3,590 | 8.72 ▲4.39 | 173.20 ▲65.99 | 45.72 ▲1.45 |
Add New /wp-admin/post-new.php?post_type=lab-client | 8,239 | 21.97 | 1,010.33 | 39.76 |
Add New /wp-admin/post-new.php?post_type=lab-service | 8,197 | 21.78 | 830.77 | 40.11 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=lab_portfolio_categories&post_type=lab-portfolio | 5,047 | 5.51 | 108.42 | 29.85 |
Client Categories /wp-admin/edit-tags.php?taxonomy=lab_client_categories&post_type=lab-client | 5,050 | 5.50 | 109.51 | 30.34 |
Event Categories /wp-admin/edit-tags.php?taxonomy=lab_event_categories&post_type=lab-event | 5,044 | 5.53 | 109.97 | 29.75 |
All Teams /wp-admin/edit.php?post_type=lab-team | 4,845 | 5.71 | 127.91 | 28.66 |
Service Categories /wp-admin/edit-tags.php?taxonomy=lab_service_categories&post_type=lab-service | 5,047 | 5.57 | 108.27 | 30.29 |
Archive Description /wp-admin/edit.php?post_type=lab-portfolio&page=lab-portfolio-description | 3,217 | 7.13 | 204.39 | 61.78 |
Testimonial Tag /wp-admin/edit-tags.php?taxonomy=lab_testimonial_tags&post_type=lab-testimonial | 4,993 | 5.51 | 114.24 | 29.56 |
All Testimonials /wp-admin/edit.php?post_type=lab-testimonial | 4,845 | 5.62 | 124.06 | 28.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 27 options
- widget_labtheme_recent_post
- widget_labtheme_featured_page_post_widget
- widget_labtheme_companion_cta_widget
- widget_labtheme_author_post_widget
- widget_labtheme_posts_category_slider_widget
- widget_labtheme_select_testimonial_widget
- widget_labtheme_icon_text_widget
- widget_labtheme_facebook_page_widget
- widget_labtheme_advertisement_widget
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/labtheme-companion/public/partials/labtheme-companion-public-display.php
- > /wp-content/plugins/labtheme-companion/admin/partials/labtheme-companion-admin-display.php
- 35× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/labtheme-companion/includes/meta-parts/labtheme-lab-testimonial-template.php:3
- > PHP Fatal error
require_once(): Failed opening required 'LABTC_BASE_PATH/includes/widgets/widget-custom-testimonial.php' (include_path='.:/usr/share/php') in wp-content/plugins/labtheme-companion/includes/widgets/widgets.php on line 5
- > PHP Warning
require_once(LABTC_BASE_PATH/includes/widgets/widget-custom-testimonial.php): failed to open stream: No such file or directory in wp-content/plugins/labtheme-companion/includes/widgets/widgets.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/labtheme-companion/includes/widgets/widget-select-testimonial.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/labtheme-companion/includes/meta-parts/labtheme-lab-course-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/labtheme-companion/includes/widgets/widget-cta.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/labtheme-companion/includes/widgets/widget-recent-post.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/labtheme-companion/includes/widgets/widget-facebook-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/labtheme-companion/includes/meta-parts/labtheme-lab-event-template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/labtheme-companion/admin/custom/class-labtheme-companion-custom-metabox.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== labtheme-companion ===
)
labtheme-companion/labtheme-companion.php 92% from 13 tests
The entry point to "LabTheme Companion" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 231 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected17,570 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 900 | 1,882 | 7,383 |
SVG | 4 | 1 | 12 | 4,644 |
CSS | 14 | 1,442 | 29 | 3,574 |
JavaScript | 19 | 109 | 77 | 1,969 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 28.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 5.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 179 | |
▷ Static methods | 2 | 1.12% |
▷ Public methods | 173 | 96.65% |
▷ Protected methods | 1 | 0.56% |
▷ Private methods | 5 | 2.79% |
Functions | 67 | |
▷ Named functions | 66 | 98.51% |
▷ Anonymous functions | 1 | 1.49% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.15KB | ▼ 61.54% |
public/css/images/btn-prev3.png | 1.54KB | 0.50KB | ▼ 67.79% |
admin/css/images/ui-icons_2e83ff_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
admin/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
public/css/images/btn-next3.png | 1.50KB | 0.47KB | ▼ 68.79% |