84% fast-testimonial

Code Review | Fast Testimonial

WordPress plugin Fast Testimonial scored84%from 54 tests.

About plugin

  • Plugin page: fast-testimonial
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Sep 22, 2022
  • Latest release: Sep 22, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: reedwanul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /146 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Fast Testimonial
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.61 ▲0.09
Dashboard /wp-admin3.39 ▲0.0848.67 ▼3.94
Posts /wp-admin/edit.php3.50 ▲0.1449.31 ▼4.50
Add New Post /wp-admin/post-new.php5.99 ▲0.1099.64 ▼19.58
Media Library /wp-admin/upload.php3.31 ▲0.0839.73 ▼5.99
Settings /wp-admin/edit.php?post_type=fasttestimonial&page=fasttestimonial-page-settings3.2836.68
All Items /wp-admin/edit.php?post_type=fasttestimonial3.3637.28
Add New /wp-admin/post-new.php?post_type=fasttestimonial3.4350.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Fast Testimonial: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲16113.48 ▼0.818.98 ▲6.9937.88 ▼2.82
Dashboard /wp-admin2,233 ▲565.60 ▼0.0788.81 ▼9.4838.27 ▼3.91
Posts /wp-admin/edit.php2,135 ▲352.05 ▲0.0537.99 ▼2.3635.31 ▼0.93
Add New Post /wp-admin/post-new.php1,556 ▲3023.59 ▲2.47685.29 ▲27.2850.18 ▼7.06
Media Library /wp-admin/upload.php1,438 ▲414.22 ▲0.0293.05 ▼24.3344.63 ▼2.98
Settings /wp-admin/edit.php?post_type=fasttestimonial&page=fasttestimonial-page-settings8841.8226.4228.94
All Items /wp-admin/edit.php?post_type=fasttestimonial1,0991.9833.2327.94
Add New /wp-admin/post-new.php?post_type=fasttestimonial2,2807.56170.1163.43

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fast-testimonial/frontend/Fast_Testimonial_Frontend.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-testimonial/admin/Fast_Testimonial_Admin.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fast-testimonial/admin/Display_Setting_Template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/fast-testimonial/fast-testimonial.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-testimonial/inc/Fast_Testimonial_I18n.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: wordpress, slick-slider, testimonial, responsive, shortcode...

fast-testimonial/fast-testimonial.php 85% from 13 tests

The principal PHP file in "Fast Testimonial" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "5.2")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "7.2")

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 plugin3,515 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
SVG2102,684
CSS55311481
PHP8108128326
JavaScript32024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.40
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods315.79%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
12 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/128/map.png36.20KB41.50KB0.00%
images/bar.png0.37KB1.90KB0.00%
images/bar-alpha.png2.14KB2.95KB0.00%
images/preview-opacity.png0.13KB0.09KB▼ 31.85%
images/bar-pointer.png0.19KB0.13KB▼ 34.34%