Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.22MB] [CPU: ▼188.80ms] Passed 4 tests
An overview of server-side resources used by Mini Testimonials
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 26.81 ▲2.40 |
Dashboard /wp-admin | 2.84 ▼0.22 | 26.21 ▼13.16 |
Posts /wp-admin/edit.php | 2.97 ▼0.14 | 23.94 ▼9.96 |
Add New Post /wp-admin/post-new.php | 4.98 ▼0.46 | 57.96 ▼726.24 |
Media Library /wp-admin/upload.php | 2.93 ▼0.07 | 17.19 ▼5.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_etm_mt |
New WordPress options |
---|
etm_mt_db_version |
Browser metrics Passed 4 tests
Mini Testimonials: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲110 | 15.65 ▼0.03 | 6.42 ▲0.93 | 81.98 ▲5.97 |
Dashboard /wp-admin | 2,950 ▲54 | 6.10 ▼0.13 | 113.23 ▼17.27 | 163.29 ▼9.58 |
Posts /wp-admin/edit.php | 2,758 ▲21 | 3.24 ▼0.00 | 63.15 ▼0.78 | 135.48 ▼2.24 |
Add New Post /wp-admin/post-new.php | 3,748 ▲13 | 18.73 ▲0.61 | 419.30 ▼20.97 | 163.69 ▲3.58 |
Media Library /wp-admin/upload.php | 1,772 ▲20 | 5.56 ▲0.05 | 133.48 ▼19.20 | 191.53 ▲4.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_etm_mt
- This plugin does not fully uninstall, leaving 1 option in the database
- etm_mt_db_version
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/mini-testimonials/admin_menu.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mini-testimonials/mini_testimonial.php:53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: mini, testim, rotate, no page, small...
mini-testimonials/mini_testimonial.php 92% from 13 tests
The main file in "Mini Testimonials" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mini-testimonials.php" instead of "mini_testimonial.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin276 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 70 | 140 |
JavaScript | 1 | 33 | 31 | 136 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin