83% amazing-testimonial-slider

Code Review | Amazing Testimonial Slider

WordPress plugin Amazing Testimonial Slider scored83%from 54 tests.

About plugin

  • Plugin page: amazing-testimoni...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 12, 2022
  • Latest release: Jan 12, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: coderbos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /275 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.64MB] [CPU: ▲3.74ms] Passed 4 tests

This is a short check of server-side resources used by Amazing Testimonial Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6141.77 ▲0.41
Dashboard /wp-admin3.97 ▲0.6654.45 ▲6.57
Posts /wp-admin/edit.php3.99 ▲0.6353.29 ▲7.69
Add New Post /wp-admin/post-new.php6.55 ▲0.6696.73 ▲5.67
Media Library /wp-admin/upload.php3.89 ▲0.6537.71 ▲2.32
Add New /wp-admin/post-new.php?post_type=lsts_post_type4.3152.10
All Testimonials /wp-admin/edit.php?post_type=lsts_post_type3.9341.01
Settings /wp-admin/edit.php?post_type=lsts_post_type&page=settings-page3.8633.02

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 390 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Amazing Testimonial Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15014.40 ▼0.013.05 ▲1.4236.69 ▼7.41
Dashboard /wp-admin2,262 ▲845.85 ▲0.1095.47 ▼16.0342.37 ▼7.63
Posts /wp-admin/edit.php2,169 ▲692.43 ▲0.4741.76 ▲3.7038.91 ▲1.74
Add New Post /wp-admin/post-new.php1,422 ▼10619.06 ▼3.87557.89 ▼96.5541.61 ▼13.12
Media Library /wp-admin/upload.php1,464 ▲614.39 ▲0.1995.52 ▲0.2537.54 ▼7.04
Add New /wp-admin/post-new.php?post_type=lsts_post_type2,3168.00174.6473.83
All Testimonials /wp-admin/edit.php?post_type=lsts_post_type1,1392.2434.8127.46
Settings /wp-admin/edit.php?post_type=lsts_post_type&page=settings-page1,0182.5043.0030.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 43× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/types/CMB2_Type_Counter_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/amazing-testimonial-slider/cmb/includes/rest-api/CMB2_REST_Controller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/amazing-testimonial-slider/cmb/includes/types/CMB2_Type_Wysiwyg.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Slider Settings), #2 (Back End), #3 (Front End)
You can look at the official readme.txt

amazing-testimonial-slider/amazing-testimonial-slider.php 77% from 13 tests

The main file in "Amazing Testimonial Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.2")
  • Git Repository: Please do not include Git repositories in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin57,332 lines of code in 231 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP602,2076,4487,546
JSON4006,633
CSS172581,1946,299
JavaScript103615952,363
Sass17306291,411
Markdown32450757

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.32
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes68
▷ Abstract classes913.24%
▷ Concrete classes5986.76%
▷ Final classes00.00%
Methods542
▷ Static methods9116.79%
▷ Public methods45083.03%
▷ Protected methods8916.42%
▷ Private methods30.55%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.18MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
cmb/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
cmb/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
screenshot-3.png27.75KB13.13KB▼ 52.68%