77% wp-testimonials-oiiio

Code Review | Testimonials

WordPress plugin Testimonials scored 77% from 54 tests.

About plugin

  • Plugin page: wp-testimonials-o...
  • Plugin version: 6.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: May 17, 2020
  • Number of updates: 66
  • Update frequency: every 33.9 days
  • Top authors: oiiio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 10,485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.38ms] Passed 4 tests

A check of server-side resources used by Testimonials
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3743.45 ▲0.62
Dashboard /wp-admin3.69 ▲0.3951.55 ▲3.62
Posts /wp-admin/edit.php3.73 ▲0.3751.95 ▲1.80
Add New Post /wp-admin/post-new.php5.20 ▼0.6964.64 ▼31.91
Media Library /wp-admin/upload.php3.52 ▲0.2937.20 ▼0.04

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 448 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Testimonials
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,163 ▲42819.27 ▲4.807.02 ▲5.2737.24 ▼2.59
Dashboard /wp-admin2,474 ▲2859.17 ▲4.25173.92 ▲57.0537.54 ▼2.70
Posts /wp-admin/edit.php2,396 ▲3046.24 ▲4.2293.86 ▲55.7037.83 ▲5.49
Add New Post /wp-admin/post-new.php6,464 ▲4,95023.99 ▲6.38976.91 ▲287.3349.38 ▼3.90
Media Library /wp-admin/upload.php1,529 ▲1416.66 ▲2.56107.68 ▲1.5045.75 ▼2.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 113× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/core/Field/Radio_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Capability_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/core/Field/Map_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/templates/Container/widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Date_Field' not found in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/core/Field/Time_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/core/Datastore/Key_Value_Datastore.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-testimonials-oiiio/vendor/htmlburger/carbon-fields/templates/Container/nav_menu_item.php:1

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% 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
These attributes need to be fixed:
  • Tags: Too many tags (51 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

wp-testimonials-oiiio/oiiio-testimonials.php 77% from 13 tests

The main file in "Testimonials" v. 6.0.0 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:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "5.0.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-testimonials-oiiio.php" instead of "oiiio-testimonials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin28,647 lines of code in 403 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1755,5278,61914,391
PHP1452,4496,5178,701
Sass4833401,746
CSS83361,1391,729
PO File206107791,652
JSON400360
Markdown324068

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.21
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces22
Interfaces5
Traits0
Classes122
▷ Abstract classes119.02%
▷ Concrete classes11190.98%
▷ Final classes10.90%
Methods902
▷ Static methods909.98%
▷ Public methods73381.26%
▷ Protected methods16518.29%
▷ Private methods40.44%
Functions102
▷ Named functions2120.59%
▷ Anonymous functions8179.41%
Constants31
▷ Global constants825.81%
▷ Class constants2374.19%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin