10% comment-testimonials

Code Review | EZ Anti-Spam Comments and Testimonials Widget

WordPress plugin EZ Anti-Spam Comments and Testimonials Widget scored10%from 54 tests.

About plugin

  • Plugin page: comment-testimonials
  • Plugin version: 2.16.41
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.6.2
  • WordPress version: 6.3.1
  • First release: Oct 29, 2012
  • Latest release: Oct 18, 2016
  • Number of updates: 13
  • Update frequency: every 111.5 days
  • Top authors: scheeeli (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /5,022 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/comment-testimonials/index.php+169
    Function create_function() is deprecated

Server metrics [RAM: ▼1.82MB] [CPU: ▼50.17ms] Passed 4 tests

An overview of server-side resources used by EZ Anti-Spam Comments and Testimonials Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.294.79 ▼34.07
Dashboard /wp-admin2.19 ▼1.117.15 ▼42.30
Posts /wp-admin/edit.php2.19 ▼1.175.86 ▼39.26
Add New Post /wp-admin/post-new.php2.19 ▼3.706.49 ▼85.03
Media Library /wp-admin/upload.php2.19 ▼1.045.98 ▼30.47

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: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_ez-cat-widget
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for EZ Anti-Spam Comments and Testimonials Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.75 ▼0.831.68 ▼0.1640.62 ▼4.67
Dashboard /wp-admin2,208 ▲205.82 ▼0.0497.07 ▼20.3738.59 ▼3.06
Posts /wp-admin/edit.php2,091 ▲21.98 ▼0.0538.68 ▲2.6235.95 ▲1.24
Add New Post /wp-admin/post-new.php1,531 ▲1718.36 ▲0.92629.10 ▼44.7450.37 ▼1.77
Media Library /wp-admin/upload.php1,390 ▼14.23 ▼0.02106.65 ▼7.2145.83 ▼3.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/comment-testimonials/index.php+169
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_ez-cat-widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/comment-testimonials/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

comment-testimonials/index.php 85% from 13 tests

The main file in "EZ Anti-Spam Comments and Testimonials Widget" v. 2.16.41 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:
  • Description: The description should be shorter than 140 characters (currently 163 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("comment-testimonials.php" instead of "index.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
Success! There were no dangerous files found in this plugin200 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11230200

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 code0.60
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin