78% excited-testimonials-showcase

Code Review | Excited! Testimonials Showcase

WordPress plugin Excited! Testimonials Showcase scored78%from 54 tests.

About plugin

  • Plugin page: excited-testimoni...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2016
  • Latest release: Jan 12, 2016
  • Number of updates: 15
  • Update frequency: every 0.2 days
  • Top authors: looks_awesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,475 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 gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▼5.55ms] Passed 4 tests

Analyzing server-side resources used by Excited! Testimonials Showcase
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6343.17 ▲3.73
Dashboard /wp-admin3.88 ▲0.5747.15 ▲1.67
Posts /wp-admin/edit.php3.92 ▲0.5650.93 ▲4.57
Add New Post /wp-admin/post-new.php5.38 ▼0.5169.01 ▼27.95
Media Library /wp-admin/upload.php3.79 ▲0.5639.22 ▲0.36

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

Browser metrics Passed 4 tests

An overview of browser requirements for Excited! Testimonials Showcase
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12014.46 ▲0.051.87 ▲0.0441.08 ▼8.72
Dashboard /wp-admin2,261 ▲734.88 ▼0.08105.39 ▼10.3241.57 ▼2.85
Posts /wp-admin/edit.php2,144 ▲552.07 ▲0.1040.86 ▲4.5935.11 ▲0.62
Add New Post /wp-admin/post-new.php1,524 ▲1017.72 ▲0.25629.34 ▼57.3163.04 ▼6.21
Media Library /wp-admin/upload.php1,444 ▲594.23 ▲0.0798.39 ▼16.2839.64 ▼8.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 32× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/excited-testimonials-showcase/admin/partials/tooltips/parts/font_style.php
    • > /wp-content/plugins/excited-testimonials-showcase/admin/partials/tooltips/parts/text_transform.php
    • > /wp-content/plugins/excited-testimonials-showcase/admin/partials/tooltips/parts/colorpicker.php
    • > /wp-content/plugins/excited-testimonials-showcase/public/partials/parts/tooltip-button.php
    • > /wp-content/plugins/excited-testimonials-showcase/admin/partials/tooltips/parts/photo_shape.php
    • > /wp-content/plugins/excited-testimonials-showcase/public/partials/parts/single_showcase/testimonials_open.php
    • > /wp-content/plugins/excited-testimonials-showcase/admin/partials/tooltips/parts/width.php
    • > /wp-content/plugins/excited-testimonials-showcase/public/partials/parts/single_showcase/testimonial_close.php
    • > /wp-content/plugins/excited-testimonials-showcase/public/partials/parts/single_showcase/testimonials_close.php
    • > /wp-content/plugins/excited-testimonials-showcase/admin/partials/tooltips/parts/padding.php
  • 367× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: styles in wp-content/plugins/excited-testimonials-showcase/public/partials/blocks/grid/photo.php on line 6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/excited-testimonials-showcase/public/partials/parts/single_showcase_css.php:2
    • > PHP Notice
      Undefined variable: styles in wp-content/plugins/excited-testimonials-showcase/public/partials/blocks/single_showcase/divider.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/excited-testimonials-showcase/public/partials/blocks/single_showcase/short_text.php on line 11
    • > PHP Notice
      Trying to get property 'rating' of non-object in wp-content/plugins/excited-testimonials-showcase/public/partials/blocks/rating.php on line 21
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/excited-testimonials-showcase/public/partials/parts/group-information.php:7
    • > PHP Notice
      Undefined variable: styles in wp-content/plugins/excited-testimonials-showcase/public/partials/blocks/widget/short_text.php on line 10
    • > PHP Notice
      Undefined variable: styles in wp-content/plugins/excited-testimonials-showcase/public/partials/blocks/grid_float/photo.php on line 7
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/excited-testimonials-showcase/public/partials/blocks/single_showcase/position.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/excited-testimonials-showcase/public/partials/blocks/short_text.php on line 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 93% 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
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

excited-testimonials-showcase/init.php 92% from 13 tests

The entry point to "Excited! Testimonials Showcase" version 1.0.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("excited-testimonials-showcase.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected10,161 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
PHP1208251,0048,702
HTML219181,000
SVG713291
JSON40048
PO File1133845
JavaScript20243
CSS301222
Markdown11010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.62
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods189
▷ Static methods6031.75%
▷ Public methods16084.66%
▷ Protected methods1910.05%
▷ Private methods105.29%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants0
▷ Global constants00.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
11 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon_support.png1.23KB1.32KB0.00%
admin/img/icon_summary.png1.38KB1.47KB0.00%
admin/img/default-avatar.png2.23KB1.86KB▼ 16.24%
admin/img/icon_vc.png1.05KB1.12KB0.00%
admin/img/menu_icon.png1.17KB0.51KB▼ 56.69%