Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.61ms] Passed 4 tests
This is a short check of server-side resources used by Simple Google Testimonials
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 48.13 ▲5.26 |
Dashboard /wp-admin | 3.38 ▲0.08 | 52.45 ▲0.16 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.23 ▲4.84 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 99.31 ▼7.82 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 43.31 ▲8.18 |
Add New /wp-admin/post-new.php?post_type=testimonials | 6.03 | 85.42 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=testimonials | 3.30 | 38.91 |
All testimonials /wp-admin/edit.php?post_type=testimonials | 3.36 | 39.83 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=testimonials | 3.30 | 42.92 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
category_children |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Google Testimonials
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 14.35 ▼0.00 | 2.14 ▲0.17 | 42.62 ▼1.46 |
Dashboard /wp-admin | 2,230 ▲53 | 5.59 ▼0.03 | 89.47 ▼5.86 | 39.50 ▲0.20 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.03 ▲0.04 | 41.71 ▲3.08 | 36.67 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.47 ▲1.28 | 630.81 ▼175.89 | 55.75 ▲0.61 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.27 ▲0.08 | 102.08 ▼0.60 | 43.97 ▼0.36 |
Add New /wp-admin/post-new.php?post_type=testimonials | 6,214 | 22.56 | 862.92 | 29.03 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=testimonials | 1,351 | 2.12 | 28.87 | 31.95 |
All testimonials /wp-admin/edit.php?post_type=testimonials | 1,188 | 1.98 | 33.27 | 30.23 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=testimonials | 1,487 | 2.25 | 31.78 | 35.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- category_children
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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
Everything seems fine, however 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-google-testimonials/templates/testimonial.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-google-testimonials/templates/testimonial-overview-item.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-google-testimonials/templates/testimonial-overview-item.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/simple-google-testimonials/templates/testimonial-overview-item.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-google-testimonials/templates/testimonial-overview-item.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-google-testimonials/templates/testimonial-overview-item.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/simple-google-testimonials/templates/testimonial-overview-item.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-google-testimonials/templates/testimonial-overview-item.php on line 2
- > 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 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== simple-google-testimonials ===
)
simple-google-testimonials/testimonials.php 69% from 13 tests
The primary PHP file in "Simple Google Testimonials" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path should be prefixed with a forward slash character ("/translations")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("simple-google-testimonials.php" instead of "testimonials.php")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("translations")
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 detected603 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 27 | 20 | 367 |
PO File | 1 | 44 | 46 | 121 |
CSS | 4 | 8 | 10 | 81 |
JavaScript | 3 | 2 | 8 | 34 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 22 | 100.00% |
▷ Public methods | 11 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 50.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected