77% wa-testimonial-slider-wp

Code Review | Wa Testimonial Slider WP

WordPress plugin Wa Testimonial Slider WP scored77%from 54 tests.

About plugin

  • Plugin page: wa-testimonial-sl...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2019
  • Latest release: Oct 30, 2019
  • Number of updates: 14
  • Update frequency: every 16.5 days
  • Top authors: jordicata (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.14MB] [CPU: ▼15.66ms] Passed 4 tests

An overview of server-side resources used by Wa Testimonial Slider WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0938.52 ▼3.84
Dashboard /wp-admin3.20 ▼0.1027.76 ▼21.67
Posts /wp-admin/edit.php3.28 ▼0.0832.86 ▼13.93
Add New Post /wp-admin/post-new.php5.52 ▼0.3768.24 ▼23.19
Media Library /wp-admin/upload.php3.23 ▼0.0030.83 ▼2.91

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Wa Testimonial Slider WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,110 ▲37515.62 ▲1.028.06 ▲6.1744.39 ▼3.52
Dashboard /wp-admin2,399 ▲2116.55 ▲1.67126.11 ▲9.5037.99 ▼8.17
Posts /wp-admin/edit.php2,287 ▲1983.55 ▲1.5148.64 ▲13.6031.26 ▼3.57
Add New Post /wp-admin/post-new.php1,709 ▲18624.74 ▲1.58601.29 ▼85.4935.24 ▼31.34
Media Library /wp-admin/upload.php1,420 ▲324.28 ▲0.0879.47 ▼25.9542.32 ▼3.21

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wa-testimonial-slider-wp/public/partials/watestimonialsliderwp-public-display.php
    • > /wp-content/plugins/wa-testimonial-slider-wp/admin/partials/watestimonialsliderwp-admin-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wa-testimonial-slider-wp/admin/partials/modalforms.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wa-testimonial-slider-wp/admin/class-watestimonialsliderwp-admin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wa-testimonial-slider-wp/admin/partials/list.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid url: "webactualizable.com"
  • Contributors: Contributors not specified
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wa-testimonial-slider-wp === )
Please take inspiration from this readme.txt

wa-testimonial-slider-wp/watestimonialsliderwp.php 77% from 13 tests

Analyzing the main PHP file in "Wa Testimonial Slider WP" version 1.0.3
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wa-testimonial-slider-wp.php" instead of "watestimonialsliderwp.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected1,263 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14244631643
CSS2746515
JavaScript32971105

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.29
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin