84% testimonium

Code Review | Testimonial

WordPress plugin Testimonial scored84%from 54 tests.

About plugin

  • Plugin page: testimonium
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.5
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Apr 15, 2016
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: drpandamoranda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,196 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.71ms] Passed 4 tests

Analyzing server-side resources used by Testimonial
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.44 ▼2.29
Dashboard /wp-admin3.34 ▲0.0449.92 ▼5.46
Posts /wp-admin/edit.php3.40 ▲0.0446.79 ▼3.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.03 ▼4.07
Media Library /wp-admin/upload.php3.27 ▲0.0438.17 ▲1.60
Add New /wp-admin/post-new.php?post_type=testimonial3.3846.85
All Testimonials /wp-admin/edit.php?post_type=testimonial3.3140.40

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Testimonial
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲17413.49 ▼1.048.90 ▲6.6842.97 ▼4.75
Dashboard /wp-admin2,225 ▲485.62 ▼0.0496.60 ▲8.9842.55 ▲3.62
Posts /wp-admin/edit.php2,127 ▲241.97 ▼0.1136.04 ▼3.9437.85 ▲3.49
Add New Post /wp-admin/post-new.php1,549 ▲2323.43 ▲0.71699.20 ▲23.1770.44 ▲9.47
Media Library /wp-admin/upload.php1,430 ▲304.26 ▲0.0599.61 ▼1.6142.03 ▼4.64
Add New /wp-admin/post-new.php?post_type=testimonial2,2197.69182.7264.58
All Testimonials /wp-admin/edit.php?post_type=testimonial1,0911.9631.0030.89

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: numOfTestimonials in wp-content/plugins/testimonium/public/partials/layout-1.php on line 6
    • > PHP Notice
      Undefined variable: orderOfTestimonials in wp-content/plugins/testimonium/public/partials/layout-2.php on line 7
    • > PHP Notice
      Undefined variable: numOfTestimonials in wp-content/plugins/testimonium/public/partials/layout-2.php on line 6
    • > PHP Notice
      Undefined variable: orderOfTestimonials in wp-content/plugins/testimonium/public/partials/layout-1.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/testimonium/testimonium.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/testimonium/public/partials/layout-1.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/testimonium/public/partials/layout-2.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: testimonial

testimonium/testimonium.php Passed 13 tests

This is the main PHP file of "Testimonial" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
A plugin to display testimonials in creative ways on your website!

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 plugin208 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP32834148
CSS3111659
JavaScript1001

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.21
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin