Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.16ms] Passed 4 tests
A check of server-side resources used by LSX Testimonials
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.28 ▼2.91 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.53 ▼4.16 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 50.09 ▲2.90 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 89.62 ▼0.46 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.16 ▲2.88 |
Add New /wp-admin/post-new.php?post_type=testimonial | 4.82 | 44.81 |
Tags /wp-admin/edit-tags.php?taxonomy=testimonial_tag&post_type=testimonial | 3.32 | 34.84 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 3.37 | 38.81 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 56 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
LSX_Testimonials_Scporder_Install |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_lsx_testimonials_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for LSX Testimonials
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲218 | 13.64 ▼0.65 | 5.72 ▲3.91 | 35.77 ▼9.36 |
Dashboard /wp-admin | 2,241 ▲50 | 5.79 ▲0.91 | 99.18 ▼11.42 | 39.61 ▼4.30 |
Posts /wp-admin/edit.php | 2,138 ▲52 | 2.27 ▲0.27 | 37.27 ▼2.41 | 30.72 ▼5.89 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 17.63 ▼5.71 | 687.96 ▲44.78 | 50.79 ▼7.69 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 4.25 ▼0.03 | 101.62 ▲1.77 | 44.17 ▼0.77 |
Add New /wp-admin/post-new.php?post_type=testimonial | 6,442 | 24.05 | 894.16 | 31.35 |
Tags /wp-admin/edit-tags.php?taxonomy=testimonial_tag&post_type=testimonial | 1,311 | 2.35 | 30.01 | 30.31 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,133 | 2.42 | 37.53 | 28.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_lsx_testimonials_widget
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- LSX_Testimonials_Scporder_Install
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Notice in wp-content/plugins/lsx-testimonials/includes/functions.php+53
Trying to get property 'id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Notice in wp-content/plugins/lsx-testimonials/includes/functions.php+54
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lsx-testimonials/classes/class-lsx-testimonials-widget.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/lsx-testimonials/templates/archive-testimonials.php:8
- > PHP Warning
require_once(LSX_TESTIMONIALS_PATHclasses/admin/class-settings.php): failed to open stream: No such file or directory in wp-content/plugins/lsx-testimonials/classes/class-lsx-testimonials-admin.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'LSX_Schema_Graph_Piece' not found in wp-content/plugins/lsx-testimonials/classes/class-lsx-testimonials-schema.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function get_thumbnail() on null in wp-content/plugins/lsx-testimonials/templates/content-archive-testimonials.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function testimonials_get_options() in wp-content/plugins/lsx-testimonials/classes/class-lsx-testimonials.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lsx-testimonials/includes/functions.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lsx-testimonials/includes/class-lsx-testimonials-scpo-engine.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/lsx-testimonials/templates/single-testimonials.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function testimonials_get_options() in wp-content/plugins/lsx-testimonials/classes/class-lsx-testimonials-frontend.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: lsx, post type, gutenberg, carousel, testimonials
lsx-testimonials/lsx-testimonials.php Passed 13 tests
"LSX Testimonials" version 1.3.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
The LSX Testimonials extension adds the "Testimonials" post type.
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 plugin3,699 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 398 | 389 | 1,792 |
Sass | 7 | 178 | 325 | 882 |
CSS | 9 | 253 | 11 | 270 |
JavaScript | 8 | 50 | 129 | 223 |
YAML | 4 | 5 | 0 | 185 |
PO File | 1 | 80 | 82 | 179 |
Markdown | 1 | 84 | 0 | 124 |
XML | 1 | 13 | 9 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 23.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 64 | 98.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.54% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
assets/img/mystery-man-square.png | 2.46KB | 1.66KB | ▼ 32.70% |