83% gtfb-recomm-video-testimonials

Code Review | GTFB ReComm Video Testimonials

WordPress plugin GTFB ReComm Video Testimonials scored83%from 54 tests.

About plugin

  • Plugin page: gtfb-recomm-video...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.0
  • WordPress version: 6.3.1
  • First release: Jul 12, 2022
  • Latest release: Aug 17, 2022
  • Number of updates: 14
  • Update frequency: every 2.9 days
  • Top authors: gtfb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /235 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.39ms] Passed 4 tests

This is a short check of server-side resources used by GTFB ReComm Video Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.88 ▼0.61
Dashboard /wp-admin3.32 ▲0.0251.59 ▼1.66
Posts /wp-admin/edit.php3.38 ▲0.0251.92 ▼1.88
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.52 ▼1.41
Media Library /wp-admin/upload.php3.25 ▲0.0241.90 ▲4.47

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for GTFB ReComm Video Testimonials
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.35 ▲0.081.86 ▲0.0749.76 ▲9.80
Dashboard /wp-admin2,224 ▲475.56 ▼0.0784.67 ▼15.0776.96 ▲35.18
Posts /wp-admin/edit.php2,126 ▲232.01 ▼0.0334.58 ▼7.1934.07 ▼0.49
Add New Post /wp-admin/post-new.php1,713 ▲18724.65 ▲0.93663.71 ▼7.8761.66 ▲1.43
Media Library /wp-admin/upload.php1,420 ▲204.31 ▲0.06107.15 ▲0.8465.55 ▲16.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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 no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_settings() in wp-content/plugins/gtfb-recomm-video-testimonials/gtfb-recomm.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/gtfb-recomm-video-testimonials/views/main.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: testimonial, customer, story, video comment, comment...

gtfb-recomm-video-testimonials/gtfb-recomm.php 77% from 13 tests

The main file in "GTFB ReComm Video Testimonials" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 478 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "2.8")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gtfb-recomm-video-testimonials.php" instead of "gtfb-recomm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin940 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS110822740
PHP45912194
JSON1003
SVG1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods888.89%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/admin-logo.png10.81KB11.70KB0.00%
assets/img/example.png35.11KB17.21KB▼ 50.99%