83% think-up-testimonials

Code Review | Think Up! Testimonials

WordPress plugin Think Up! Testimonials scored83%from 54 tests.

About plugin

  • Plugin page: think-up-testimon...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 8, 2015
  • Latest release: Aug 1, 2016
  • Number of updates: 21
  • Update frequency: every 18.6 days
  • Top authors: Cipes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,164 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.02ms] Passed 4 tests

This is a short check of server-side resources used by Think Up! Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.25 ▼2.59
Dashboard /wp-admin3.31 ▼0.0450.61 ▼15.77
Posts /wp-admin/edit.php3.36 ▲0.0046.93 ▼7.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.47 ▼13.72
Media Library /wp-admin/upload.php3.23 ▲0.0037.77 ▲0.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Think Up! Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲11513.45 ▼0.939.07 ▲7.0243.26 ▼1.24
Dashboard /wp-admin2,195 ▲155.66 ▲0.0385.54 ▼5.1841.37 ▼7.63
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.1138.76 ▼1.7736.90 ▼2.99
Add New Post /wp-admin/post-new.php1,540 ▲923.37 ▲0.13689.63 ▲1.6263.80 ▲7.36
Media Library /wp-admin/upload.php1,400 ▲64.31 ▲0.0993.57 ▼13.7642.41 ▲1.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/think-up-testimonials/thinkup-testimonials.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: "n/a"
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === think-up-testimonials === )
You can look at the official readme.txt

think-up-testimonials/thinkup-testimonials.php 92% from 13 tests

"Think Up! Testimonials" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("think-up-testimonials.php" instead of "thinkup-testimonials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,265 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2132127945
CSS2637268
PHP1162533
SVG10019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin