77% simple-testimonials

Code Review | Simple Testimonials

WordPress plugin Simple Testimonials scored77%from 54 tests.

About plugin

  • Plugin page: simple-testimonials
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: May 6, 2013
  • Latest release: Mar 23, 2023
  • Number of updates: 42
  • Update frequency: every 87.3 days
  • Top authors: PIXELovely (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

500+ active /18,810 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲2.62ms] Passed 4 tests

This is a short check of server-side resources used by Simple Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1235.92 ▼5.00
Dashboard /wp-admin3.41 ▲0.1151.11 ▲2.46
Posts /wp-admin/edit.php3.46 ▲0.1053.06 ▲8.62
Add New Post /wp-admin/post-new.php5.99 ▲0.10100.89 ▲16.73
Media Library /wp-admin/upload.php3.33 ▲0.1035.23 ▲4.41
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonialcategory&post_type=testimonials3.3235.62
Add New /wp-admin/post-new.php?post_type=testimonials3.2432.92
All Testimonials /wp-admin/edit.php?post_type=testimonials3.3735.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_pix_testimonials_widget
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Testimonials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.18 ▼1.191.71 ▼0.1642.51 ▼6.52
Dashboard /wp-admin2,237 ▲494.83 ▼0.07106.42 ▼2.3241.42 ▼5.00
Posts /wp-admin/edit.php2,117 ▲282.00 ▲0.0339.05 ▲0.8534.47 ▲1.15
Add New Post /wp-admin/post-new.php6,376 ▲4,85627.64 ▲4.36903.89 ▲224.3459.27 ▲2.49
Media Library /wp-admin/upload.php1,419 ▲314.21 ▼0.01104.32 ▲8.5445.62 ▲4.48
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=testimonialcategory&post_type=testimonials1,2932.1331.2628.94
Add New /wp-admin/post-new.php?post_type=testimonials1,5162.5563.7152.65
All Testimonials /wp-admin/edit.php?post_type=testimonials1,0892.0731.3029.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_pix_testimonials_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=testimonials
    • > Notice in wp-content/plugins/simple-testimonials/pixelovely_testimonial.php+184
    Undefined index: pix_simple_testimonial_pagemeta_noncename

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-testimonials/pixelovely_testimonial.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: Version not formatted correctly
The official readme.txt might help

simple-testimonials/pixelovely_testimonial.php 77% from 13 tests

The primary PHP file in "Simple Testimonials" version 1.0.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-testimonials.php" instead of "pixelovely_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 plugin439 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP110135386
JavaScript12047
CSS1006

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/headshot2.png31.39KB15.47KB▼ 50.72%