74% simple-testimonial-slider-and-grid

Code Review | Testimonials Slider Plugin

WordPress plugin Testimonials Slider Plugin scored74%from 54 tests.

About plugin

  • Plugin page: simple-testimonia...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Apr 4, 2018
  • Latest release: Apr 4, 2018
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: navink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.20MB] [CPU: ▼47.24ms] Passed 4 tests

An overview of server-side resources used by Testimonials Slider Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.77 ▼0.6913.51 ▼25.95
Dashboard /wp-admin2.81 ▼0.4918.18 ▼39.85
Posts /wp-admin/edit.php2.81 ▼0.5518.62 ▼38.74
Add New Post /wp-admin/post-new.php2.81 ▼3.0815.85 ▼84.42
Media Library /wp-admin/upload.php2.81 ▼0.4215.90 ▼23.66

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Testimonials Slider Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.52 ▼0.6412.56 ▲10.6952.41 ▲9.14
Dashboard /wp-admin2,198 ▲245.62 ▲0.0188.91 ▼3.8638.05 ▼5.12
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0136.87 ▼3.0835.43 ▼3.02
Add New Post /wp-admin/post-new.php1,529 ▲123.15 ▲0.22677.99 ▲76.0753.56 ▲5.34
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.09111.53 ▲8.7149.19 ▲2.14

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
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'create_posttype' not found or invalid function name
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_simple_testimonial_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-testimonial-slider-and-grid/testimonial-slider.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Frontend ), #2 (Backend )
The official readme.txt might help

simple-testimonial-slider-and-grid/testimonial-slider.php 92% from 13 tests

The main PHP file in "Testimonials Slider Plugin" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
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 ("simple-testimonial-slider-and-grid.php" instead of "testimonial-slider.php")

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 detected13,082 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
CSS765377,672
JavaScript61,4292493,726
HTML1191353
SVG210301
Markdown31120267
Sass2275262
PHP14822208
LESS1115152
JSON400128
Ruby1208
make1305

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
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
2 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot/screenshot_1.png122.69KB32.32KB▼ 73.65%
screenshot/screenshot_2.png.png108.37KB32.89KB▼ 69.65%