84% best-testimonials

Code Review | Best Testimonials

WordPress plugin Best Testimonials scored 84% from 54 tests.

About plugin

  • Plugin page: best-testimonials
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 26, 2017
  • Latest release: Apr 26, 2017
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: farvehandleren (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 686 total downloads

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.65MB] [CPU: ▼15.90ms] Passed 4 tests

This is a short check of server-side resources used by Best Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.27 ▼3.11
Dashboard /wp-admin3.35 ▲0.0545.36 ▼0.22
Posts /wp-admin/edit.php3.40 ▲0.0544.52 ▼0.51
Add New Post /wp-admin/post-new.php3.14 ▼2.7536.48 ▼58.49
Media Library /wp-admin/upload.php3.28 ▲0.0535.26 ▼1.47
Testimonials /wp-admin/edit.php?post_type=testimonial3.3234.29
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial3.1434.04

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Best Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5913.55 ▼0.991.65 ▼0.3338.08 ▼6.98
Dashboard /wp-admin2,236 ▲485.81 ▼0.0996.29 ▼5.1237.24 ▼7.73
Posts /wp-admin/edit.php2,113 ▲242.05 ▲0.0534.32 ▼6.6731.19 ▼6.03
Add New Post /wp-admin/post-new.php1,543 ▲1023.13 ▲0.06642.77 ▼28.7553.07 ▼7.17
Media Library /wp-admin/upload.php1,415 ▲274.26 ▲0.0795.67 ▼3.9640.21 ▼4.97
Testimonials /wp-admin/edit.php?post_type=testimonial1,0802.0031.4230.08
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial2,3187.58171.5567.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=testimonial
    • > Warning in wp-includes/class-wp-hook.php+312
    call_user_func_array() expects parameter 1 to be a valid callback, function 'custom_add_save' not found or invalid function name

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
4 plugin tags: post, testimonials, list, grid

best-testimonials/main.php 92% from 13 tests

The principal PHP file in "Best Testimonials" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("best-testimonials.php" instead of "main.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
No dangerous file extensions were detected166 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23421166

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin