84% fancy-testimonials

Code Review | Fancy Testimonials

WordPress plugin Fancy Testimonials scored84%from 54 tests.

About plugin

  • Plugin page: fancy-testimonials
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-3.6
  • WordPress version: 6.3.1
  • First release: Aug 21, 2013
  • Latest release: Aug 21, 2013
  • Number of updates: 17
  • Update frequency: every 0.3 days
  • Top authors: Dijitul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.45ms] Passed 4 tests

Analyzing server-side resources used by Fancy Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.69 ▼0.52
Dashboard /wp-admin3.31 ▲0.0146.88 ▼3.20
Posts /wp-admin/edit.php3.37 ▲0.0150.98 ▲3.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.10 ▲2.43
Media Library /wp-admin/upload.php3.24 ▲0.0139.68 ▲4.97

Server storage [IO: ▲0.06MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Fancy Testimonials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.34 ▼0.262.18 ▼0.1638.84 ▼1.71
Dashboard /wp-admin2,198 ▲215.63 ▲0.1099.98 ▲12.1245.73 ▲2.66
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0439.21 ▲1.8236.68 ▲0.92
Add New Post /wp-admin/post-new.php1,526 ▼023.43 ▲0.05673.26 ▼31.6253.05 ▲1.48
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.0197.48 ▼9.7042.98 ▼2.62

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • 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 shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fancy-testimonials/testimonials.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: testimonials, shortcode, slider, carousel

fancy-testimonials/testimonials.php 92% from 13 tests

This is the main PHP file of "Fancy Testimonials" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fancy-testimonials.php" instead of "testimonials.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,401 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21251271,306
CSS11359
PHP1561336

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pagerButtons.png1.05KB0.46KB▼ 55.81%
images/left.png1.23KB0.36KB▼ 70.84%
images/right.png1.22KB0.36KB▼ 70.40%