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.03MB] [CPU: ▼6.69ms] Passed 4 tests
This is a short check of server-side resources used by Testimonials for Freemius
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 39.25 ▼4.08 |
Dashboard /wp-admin | 3.37 ▲0.03 | 49.59 ▼3.40 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 47.52 ▼4.68 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.02 | 84.32 ▼14.59 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 37.58 ▲1.40 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Testimonials for Freemius
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲30 | 14.33 ▼0.02 | 1.89 ▲0.07 | 40.06 ▼4.65 |
Dashboard /wp-admin | 2,192 ▲15 | 5.52 ▼0.13 | 85.98 ▼0.79 | 41.29 ▼2.07 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.04 | 34.69 ▼4.95 | 33.39 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.92 ▼0.22 | 648.94 ▼38.87 | 52.29 ▼2.59 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▲0.04 | 99.49 ▼7.43 | 41.60 ▼5.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- 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
Good news, no errors were detected
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
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fs-testimonials/inc/tpl.admin-section.php:6
- > PHP Fatal error
Uncaught Error: Class 'Freemius_Exception' not found in wp-content/plugins/fs-testimonials/inc/freemius/Exceptions/OAuthException.php:2
- > PHP Fatal error
Uncaught Error: Class 'Freemius_Exception' not found in wp-content/plugins/fs-testimonials/inc/freemius/Exceptions/InvalidArgumentException.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fs-testimonials/fs-testimonial.php:67
- > PHP Fatal error
Uncaught Error: Class 'Freemius_InvalidArgumentException' not found in wp-content/plugins/fs-testimonials/inc/freemius/Exceptions/EmptyArgumentException.php:2
- > PHP Fatal error
Uncaught Error: Class 'Freemius_InvalidArgumentException' not found in wp-content/plugins/fs-testimonials/inc/freemius/Exceptions/ArgumentNotExistException.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Reviews frontend display), #2 (Reviews compressed drawer), #3 (Admin settings area)
fs-testimonials/fs-testimonial.php 92% from 13 tests
The principal PHP file in "Testimonials for Freemius" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fs-testimonials.php" instead of "fs-testimonial.php")
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
Good job! No executable or dangerous file extensions detected708 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 115 | 182 | 515 |
Sass | 1 | 6 | 0 | 192 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing 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.39 |
Average class complexity | 8.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 5 | 16.67% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 3 | 10.00% |
▷ Private methods | 1 | 3.33% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected