84% quick-and-easy-testimonials

Code Review | Quick and Easy Testimonials

WordPress plugin Quick and Easy Testimonials scored84%from 54 tests.

About plugin

  • Plugin page: quick-and-easy-te...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Jun 6, 2023
  • Number of updates: 34
  • Update frequency: every 87.4 days
  • Top authors: saqibsarwar (52.94%)sungraiz (32.35%)usmanaliqureshi (14.71%)fahidjavid (8.82%)

Code review

54 tests

User reviews

4 reviews

Install metrics

6,000+ active /109,239 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.16MB] [CPU: ▼1.15ms] Passed 4 tests

A check of server-side resources used by Quick and Easy Testimonials
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1843.05 ▼1.52
Dashboard /wp-admin3.46 ▲0.1550.89 ▼3.34
Posts /wp-admin/edit.php3.58 ▲0.2257.36 ▲7.01
Add New Post /wp-admin/post-new.php6.04 ▲0.1592.51 ▼3.69
Media Library /wp-admin/upload.php3.39 ▲0.1538.28 ▲3.94
Add New /wp-admin/post-new.php?post_type=testimonial3.5054.37
Testimonial Category /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonial3.3838.84
All Testimonials /wp-admin/edit.php?post_type=testimonial3.4337.71

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick and Easy Testimonials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲7113.13 ▼1.111.56 ▼0.3840.28 ▼9.36
Dashboard /wp-admin2,234 ▲525.88 ▲0.78103.01 ▼6.9638.02 ▼3.33
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0142.67 ▲6.6340.57 ▲4.97
Add New Post /wp-admin/post-new.php1,547 ▲2823.20 ▲0.09632.78 ▲22.2466.27 ▲1.72
Media Library /wp-admin/upload.php1,419 ▲314.21 ▼0.01103.44 ▼5.1943.25 ▼3.36
Add New /wp-admin/post-new.php?post_type=testimonial2,3407.57189.2968.16
Testimonial Category /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonial1,2902.1427.4029.65
All Testimonials /wp-admin/edit.php?post_type=testimonial1,0972.0156.5333.55

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=testimonial
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=testimonial
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 38 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=testimonial
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+206
    Trying to get property 'ID' of non-object
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=testimonial
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

quick-and-easy-testimonials/quick-and-easy-testimonials.php 92% from 13 tests

The entry point to "Quick and Easy Testimonials" version 1.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin859 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11235628629
PO File14849126
CSS20849
LESS17449
JavaScript24546

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods39
▷ Static methods410.26%
▷ Public methods3487.18%
▷ Protected methods00.00%
▷ Private methods512.82%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin