94% advanced-testimonials

Code Review | Advanced Testimonials

WordPress plugin Advanced Testimonials scored 94% 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: 5.9.2
  • 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 / 528 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Advanced Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1854.12 ▲2.49
Dashboard /wp-admin3.53 ▲0.1233.81 ▼6.84
Posts /wp-admin/edit.php3.76 ▲0.1137.66 ▲2.07
Add New Post /wp-admin/post-new.php7.00 ▲0.0389.83 ▼1,194.93
Media Library /wp-admin/upload.php3.41 ▲0.1126.28 ▲2.70
All Items /wp-admin/edit.php?post_type=advtestimonials3.5125.28
Add New /wp-admin/post-new.php?post_type=advtestimonials3.7544.61
Category /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=advtestimonials3.4126.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Testimonials
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,941 ▲18816.26 ▲0.599.73 ▲2.611.90 ▼0.56
Dashboard /wp-admin2,936 ▲756.05 ▼0.17118.44 ▼17.02176.84 ▲15.98
Posts /wp-admin/edit.php2,733 ▲393.12 ▼0.1164.54 ▲2.08143.33 ▲3.57
Add New Post /wp-admin/post-new.php1,716 ▲5518.24 ▲2.14442.40 ▲22.35158.36 ▲3.22
Media Library /wp-admin/upload.php1,737 ▲365.56 ▲0.05132.53 ▼9.41210.80 ▲29.35
All Items /wp-admin/edit.php?post_type=advtestimonials1,4073.1759.69115.46
Add New /wp-admin/post-new.php?post_type=advtestimonials3,10610.15193.85240.26
Category /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=advtestimonials1,6682.7355.54108.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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 | 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/admin/partials/advanced-testimonial-admin-display.php
    • > /wp-content/plugins/advanced-testimonials/public/partials/advanced-testimonial-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 96% 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
8 plugin tags: reviews, testimonials, testimonial, codeincept, easy testimonial...

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
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected810 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

All PNG images should be compressed to minimize bandwidth usage for end users
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%