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: ▲0.04MB] [CPU: ▼3.71ms] Passed 4 tests
Analyzing server-side resources used by Testimonial
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.44 ▼2.29 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.92 ▼5.46 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.79 ▼3.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.03 ▼4.07 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.17 ▲1.60 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3.38 | 46.85 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 3.31 | 40.40 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Testimonial
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 13.49 ▼1.04 | 8.90 ▲6.68 | 42.97 ▼4.75 |
Dashboard /wp-admin | 2,225 ▲48 | 5.62 ▼0.04 | 96.60 ▲8.98 | 42.55 ▲3.62 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.97 ▼0.11 | 36.04 ▼3.94 | 37.85 ▲3.49 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.43 ▲0.71 | 699.20 ▲23.17 | 70.44 ▲9.47 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.26 ▲0.05 | 99.61 ▼1.61 | 42.03 ▼4.64 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,219 | 7.69 | 182.72 | 64.58 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,091 | 1.96 | 31.00 | 30.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: numOfTestimonials in wp-content/plugins/testimonium/public/partials/layout-1.php on line 6
- > PHP Notice
Undefined variable: orderOfTestimonials in wp-content/plugins/testimonium/public/partials/layout-2.php on line 7
- > PHP Notice
Undefined variable: numOfTestimonials in wp-content/plugins/testimonium/public/partials/layout-2.php on line 6
- > PHP Notice
Undefined variable: orderOfTestimonials in wp-content/plugins/testimonium/public/partials/layout-1.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testimonium/testimonium.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/testimonium/public/partials/layout-1.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/testimonium/public/partials/layout-2.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: testimonial
testimonium/testimonium.php Passed 13 tests
This is the main PHP file of "Testimonial" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
A plugin to display testimonials in creative ways on your website!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin208 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 34 | 148 |
CSS | 3 | 11 | 16 | 59 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 images were found in this plugin