84% c4d-testimonial

Code Review | Testimonial

WordPress plugin Testimonial scored 84% from 54 tests.

About plugin

  • Plugin page: c4d-testimonial
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2017
  • Latest release: Feb 17, 2017
  • Number of updates: 8
  • Update frequency: every 2.8 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.39ms] Passed 4 tests

This is a short check of server-side resources used by Testimonial
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.79 ▲0.84
Dashboard /wp-admin3.33 ▲0.0344.91 ▼8.47
Posts /wp-admin/edit.php3.38 ▲0.0244.74 ▼1.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.35 ▼0.59
Media Library /wp-admin/upload.php3.25 ▲0.0236.54 ▲5.50
Add New /wp-admin/post-new.php?post_type=c4d-testimonial3.3746.24
C4D Testimonial /wp-admin/edit.php?post_type=c4d-testimonial3.2934.19

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

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

Browser metrics Passed 4 tests

Testimonial: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲23913.63 ▼0.648.74 ▲7.0438.48 ▼6.47
Dashboard /wp-admin2,233 ▲424.85 ▼1.05107.51 ▲9.6044.02 ▼0.78
Posts /wp-admin/edit.php2,113 ▲242.10 ▲0.1039.98 ▲2.8035.59 ▲5.87
Add New Post /wp-admin/post-new.php1,551 ▲1822.83 ▼0.50609.91 ▼61.0348.20 ▼5.53
Media Library /wp-admin/upload.php1,409 ▲274.21 ▼0.0896.66 ▼3.7642.60 ▼3.68
Add New /wp-admin/post-new.php?post_type=c4d-testimonial2,2207.69172.4564.58
C4D Testimonial /wp-admin/edit.php?post_type=c4d-testimonial1,0892.0033.4032.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: params in wp-content/plugins/c4d-testimonial/templates/default.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/c4d-testimonial/templates/default.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-testimonial/c4d-testimonial.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
1 plugin tags: 100

c4d-testimonial/c4d-testimonial.php Passed 13 tests

This is the main PHP file of "Testimonial" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Manager client comments and create slider/ grid

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
No dangerous file extensions were detected1,945 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3214221,324
CSS41828268
PHP21815171
Sass120144
JSON20038

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
libs/owl-carousel/grabbing.png0.11KB0.14KB0.00%