84% vntestimonial

Code Review | Testimonial

WordPress plugin Testimonial scored84%from 54 tests.

About plugin

  • Plugin page: vntestimonial
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.4
  • WordPress version: 6.3.1
  • First release: May 8, 2017
  • Latest release: May 8, 2017
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: varunnaharia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Testimonial
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.70 ▼2.83
Dashboard /wp-admin3.33 ▲0.0344.29 ▼1.68
Posts /wp-admin/edit.php3.38 ▲0.0348.50 ▼1.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.00 ▼16.44
Media Library /wp-admin/upload.php3.25 ▲0.0235.55 ▲2.51
Add New Testimonial /wp-admin/post-new.php?post_type=vntestimonial3.3745.71
Testimonials /wp-admin/edit.php?post_type=vntestimonial3.3033.55

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Testimonial
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.21 ▼1.161.77 ▼0.2740.95 ▼7.89
Dashboard /wp-admin2,236 ▲514.84 ▼1.00101.82 ▼2.9040.30 ▼2.36
Posts /wp-admin/edit.php2,116 ▲272.06 ▲0.0539.07 ▼2.6735.35 ▲0.12
Add New Post /wp-admin/post-new.php1,542 ▲1423.16 ▲0.14618.97 ▼45.9253.11 ▼10.73
Media Library /wp-admin/upload.php1,418 ▲274.32 ▲0.1497.08 ▼3.4041.42 ▼1.90
Add New Testimonial /wp-admin/post-new.php?post_type=vntestimonial2,2527.61186.0069.00
Testimonials /wp-admin/edit.php?post_type=vntestimonial1,0891.9834.8130.59

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/vntestimonial/vntestimonial.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #0 in vntestimonial/assets to your readme.txt
  • Tags: There are too many tags (84 tag instead of maximum 10)
You can take inspiration from this readme.txt

vntestimonial/vntestimonial.php Passed 13 tests

The principal PHP file in "Testimonial" v. 1.0 is loaded by WordPress automatically on each request
38 characters long description:
a plugin to create company Testimonial

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin154 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15315154

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.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
No PNG files were detected