10% wiwitness-testimonials

Code Review | Wiwitness Testimonials

WordPress plugin Wiwitness Testimonials scored 10% from 54 tests.

About plugin

  • Plugin page: wiwitness-testimo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Sep 23, 2013
  • Number of updates: 10
  • Update frequency: every 1.0 days
  • Top authors: rajesh bhat (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,217 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wiwitness-testimonials/wiwitness-testimonials.php+43
    Methods with the same name as their class will not be constructors in a future version of PHP; WiwitnessWidget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼50.05ms] Passed 4 tests

A check of server-side resources used by Wiwitness Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.52 ▼35.64
Dashboard /wp-admin2.08 ▼1.226.27 ▼41.61
Posts /wp-admin/edit.php2.08 ▼1.277.51 ▼40.01
Add New Post /wp-admin/post-new.php2.08 ▼3.815.76 ▼82.95
Media Library /wp-admin/upload.php2.08 ▼1.155.46 ▼27.44

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_wiwitness-widget

Browser metrics Passed 4 tests

Wiwitness Testimonials: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.65 ▼0.751.82 ▼0.2341.54 ▼11.15
Dashboard /wp-admin2,209 ▲214.84 ▼1.01103.14 ▼12.7841.53 ▼2.04
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0040.10 ▲2.2336.64 ▲1.86
Add New Post /wp-admin/post-new.php1,533 ▼123.23 ▼0.18611.44 ▼49.4463.39 ▲14.22
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0595.14 ▼3.7041.33 ▼1.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wiwitness-testimonials/wiwitness-testimonials.php+43
    Methods with the same name as their class will not be constructors in a future version of PHP; WiwitnessWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_wiwitness-widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wiwitness-testimonials/wiwitness-testimonials.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: testimonials, testimonial plugin, testimonials widget, testimonial widget, wiwitness...

wiwitness-testimonials/wiwitness-testimonials.php 92% from 13 tests

"Wiwitness Testimonials" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 431 characters long)

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
No dangerous file extensions were detected46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1232346

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected