83% wp-awesome-testimonial

Code Review | Wp Awesome Testimonial

WordPress plugin Wp Awesome Testimonial scored83%from 54 tests.

About plugin

  • Plugin page: wp-awesome-testim...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Jan 20, 2019
  • Latest release: Jan 7, 2022
  • Number of updates: 7
  • Update frequency: every 154.9 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.27ms] Passed 4 tests

This is a short check of server-side resources used by Wp Awesome Testimonial
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.17 ▼6.99
Dashboard /wp-admin3.33 ▲0.0343.41 ▼6.55
Posts /wp-admin/edit.php3.39 ▲0.0344.91 ▲1.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.76 ▼0.75
Media Library /wp-admin/upload.php3.26 ▲0.0336.64 ▲2.61
Testimonial /wp-admin/edit.php?post_type=awesome-testimonial3.3033.67
Add New /wp-admin/post-new.php?post_type=awesome-testimonial3.3856.77

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Wp Awesome Testimonial
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.91 ▼0.4812.94 ▲11.0845.23 ▲0.28
Dashboard /wp-admin2,230 ▲424.83 ▼1.0598.84 ▼17.3140.74 ▼7.01
Posts /wp-admin/edit.php2,119 ▲302.15 ▲0.1334.68 ▼2.3832.63 ▼2.17
Add New Post /wp-admin/post-new.php1,556 ▲2323.08 ▲0.15650.20 ▼25.8156.50 ▼1.45
Media Library /wp-admin/upload.php1,412 ▲214.21 ▲0.0495.96 ▼11.4942.74 ▼2.91
Testimonial /wp-admin/edit.php?post_type=awesome-testimonial1,0801.9629.8529.82
Add New /wp-admin/post-new.php?post_type=awesome-testimonial2,1807.60164.0260.62

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-awesome-testimonial/wp-awesome-testimonial.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This is the first screen shot), #2 (This is the second screen shot), #3 (This is the third screen shot), #4 (This is the fourth screen shot), #5 (This is the fifth screen shot)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-awesome-testimonial === )
The official readme.txt is a good inspiration

wp-awesome-testimonial/wp-awesome-testimonial.php 92% from 13 tests

The main PHP file in "Wp Awesome Testimonial" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin7,366 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
SVG3003,927
CSS31,297603,284
JavaScript293365
PHP113763
HTML30027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
No PNG images were found in this plugin