84% advanced-testimonials

Code Review | Advanced Testimonials

WordPress plugin Advanced Testimonials scored84%from 54 tests.

About plugin

  • Plugin page: advanced-testimon...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 7, 2018
  • Latest release: Mar 7, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: codeincept (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.63ms] Passed 4 tests

An overview of server-side resources used by Advanced Testimonials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.51 ▲1.94
Dashboard /wp-admin3.42 ▲0.1144.42 ▼0.39
Posts /wp-admin/edit.php3.53 ▲0.1847.78 ▲4.20
Add New Post /wp-admin/post-new.php6.02 ▲0.1482.53 ▼8.26
Media Library /wp-admin/upload.php3.34 ▲0.1142.52 ▲10.32
All Items /wp-admin/edit.php?post_type=advtestimonials3.3835.22
Add New /wp-admin/post-new.php?post_type=advtestimonials3.4651.13
Category /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=advtestimonials3.3335.11

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Advanced Testimonials: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17413.54 ▼0.845.44 ▲3.6742.30 ▼1.27
Dashboard /wp-admin2,237 ▲465.84 ▲0.9296.44 ▼10.0373.57 ▲31.21
Posts /wp-admin/edit.php2,123 ▲311.98 ▼0.0634.21 ▼1.6934.98 ▼0.36
Add New Post /wp-admin/post-new.php1,707 ▲16524.89 ▲6.58695.79 ▲92.6553.58 ▼4.93
Media Library /wp-admin/upload.php1,422 ▲374.12 ▼0.1499.24 ▼0.2591.34 ▲49.07
All Items /wp-admin/edit.php?post_type=advtestimonials1,0901.9631.2329.16
Add New /wp-admin/post-new.php?post_type=advtestimonials2,3667.64166.50136.87
Category /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=advtestimonials1,2962.1426.4930.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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
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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/advanced-testimonials/public/partials/advanced-testimonial-public-display.php
    • > /wp-content/plugins/advanced-testimonials/admin/partials/advanced-testimonial-admin-display.php

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: codeincept, client testimonials, reviews, easy testimonial, client...

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

The main PHP file in "Advanced Testimonials" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin810 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/prevh.png1.77KB0.80KB▼ 55.04%
admin/images/rating.png1.33KB1.17KB▼ 11.89%