74% testimonials-wzm

Code Review | Testimonials

WordPress plugin Testimonials scored 74% from 54 tests.

About plugin

  • Plugin page: testimonials-wzm
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Jul 21, 2016
  • Latest release: Jan 5, 2017
  • Number of updates: 12
  • Update frequency: every 14.2 days
  • Top authors: wijzijnmerlin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 831 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼31.03ms] Passed 4 tests

Server-side resources used by Testimonials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.02 ▼6.78
Dashboard /wp-admin3.03 ▼0.2823.62 ▼24.70
Posts /wp-admin/edit.php3.03 ▼0.3324.84 ▼18.99
Add New Post /wp-admin/post-new.php3.03 ▼2.8623.87 ▼65.54
Media Library /wp-admin/upload.php3.03 ▼0.2022.08 ▼14.88
Testimonials /wp-admin/admin.php?page=testimonialswzm_page3.0322.99
Settings /wp-admin/admin.php?page=Testimonials3.0322.59

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
tpage
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Testimonials: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.154.25 ▲2.6441.90 ▼1.66
Dashboard /wp-admin2,226 ▲355.77 ▼0.1394.61 ▼6.3439.64 ▼1.57
Posts /wp-admin/edit.php2,112 ▲232.04 ▲0.0439.58 ▲0.2935.14 ▼5.23
Add New Post /wp-admin/post-new.php1,553 ▲3923.37 ▲5.73640.02 ▼99.4557.38 ▲7.19
Media Library /wp-admin/upload.php1,411 ▲234.24 ▲0.0594.78 ▼9.5942.99 ▼2.89
Testimonials /wp-admin/admin.php?page=testimonialswzm_page1,7342.7534.9432.55
Settings /wp-admin/admin.php?page=Testimonials8132.0724.9326.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • tpage
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Testimonials
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=Testimonials
    • > Notice in wp-content/plugins/testimonials-wzm/testimonials_import_admin.php+8
    Undefined index: tab

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: wordpress testimonials, custom color, custom css, testimonial shortcodes, testimonial...

testimonials-wzm/merlin-testimonials.php 92% from 13 tests

The main file in "Testimonials" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("testimonials-wzm.php" instead of "merlin-testimonials.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 detected168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23622162
CSS1016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions9
▷ Named functions9100.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