74% gifted-testimonials

Code Review | Gifted Testimonials

WordPress plugin Gifted Testimonials scored74%from 54 tests.

About plugin

  • Plugin page: gifted-testimonials
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Dec 12, 2019
  • Latest release: Dec 12, 2019
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: kofimokome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /485 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Gifted Testimonials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.89 ▲4.29
Dashboard /wp-admin3.34 ▲0.0447.44 ▼2.87
Posts /wp-admin/edit.php3.39 ▲0.0345.64 ▼2.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.33 ▼13.20
Media Library /wp-admin/upload.php3.26 ▲0.0337.98 ▲1.17
All Testimonials /wp-admin/edit.php?post_type=gifted_testimonials3.3134.81
Add New Testimonial /wp-admin/post-new.php?post_type=gifted_testimonials3.3863.29
Locations /wp-admin/edit-tags.php?taxonomy=gifted_testimonials_location&post_type=gifted_testimonials3.2633.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Gifted Testimonials
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲14413.48 ▼0.899.96 ▲8.1041.65 ▲0.31
Dashboard /wp-admin2,226 ▲455.64 ▼0.0288.96 ▼14.7737.69 ▼4.91
Posts /wp-admin/edit.php2,131 ▲312.04 ▲0.0336.10 ▼1.7832.05 ▼0.68
Add New Post /wp-admin/post-new.php1,570 ▲4225.02 ▲2.00606.53 ▼17.05101.13 ▲32.89
Media Library /wp-admin/upload.php1,431 ▲314.23 ▼0.0194.27 ▼9.0742.71 ▲0.03
All Testimonials /wp-admin/edit.php?post_type=gifted_testimonials1,1091.9730.7827.86
Add New Testimonial /wp-admin/post-new.php?post_type=gifted_testimonials2,3397.60189.8679.08
Locations /wp-admin/edit-tags.php?taxonomy=gifted_testimonials_location&post_type=gifted_testimonials1,2772.1227.0027.32

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'kmgt_deactivation' not found or invalid function name
  • 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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gifted-testimonials/gifted-testimonials.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "www.kofimokome.space"
You can take inspiration from this readme.txt

gifted-testimonials/gifted-testimonials.php Passed 13 tests

The principal PHP file in "Gifted Testimonials" v. 1.0.1 is loaded by WordPress automatically on each request
36 characters long description:
Displays a nice testimonial carousel

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
Everything looks great! No dangerous files found in this plugin9,326 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,954
PHP44637227
Sass16452
CSS411536
JavaScript22831
Markdown112026

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1164.71%
▷ Protected methods00.00%
▷ Private methods635.29%
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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-1.png65.01KB23.43KB▼ 63.96%