78% really-simple-testimonials

Code Review | Really Simple Testimonials

WordPress plugin Really Simple Testimonials scored78%from 54 tests.

About plugin

  • Plugin page: really-simple-tes...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 20, 2022
  • Latest release: Dec 20, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: themeix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /504 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.50MB] [CPU: ▼4.99ms] Passed 4 tests

A check of server-side resources used by Really Simple Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5046.21 ▼0.74
Dashboard /wp-admin3.80 ▲0.5054.38 ▼1.32
Posts /wp-admin/edit.php3.92 ▲0.5652.02 ▼3.67
Add New Post /wp-admin/post-new.php6.41 ▲0.5291.04 ▼14.24
Media Library /wp-admin/upload.php3.73 ▲0.5043.41 ▲4.85
Doc & Support /wp-admin/edit.php?post_type=rst_testimonial&page=rst-support3.6936.68
All Shortcode /wp-admin/edit.php?post_type=rst_shortcode3.7748.62
Add New /wp-admin/post-new.php?post_type=rst_testimonial3.7850.23
Generate Shortcode /wp-admin/post-new.php?post_type=rst_shortcode3.7746.71
Categories /wp-admin/edit-tags.php?taxonomy=rst_testimonial_category&post_type=rst_testimonial3.7241.18
Frontend Submission /wp-admin/edit.php?post_type=rst_testimonial&page=rst-user-form-options3.7041.23
Testimonials /wp-admin/edit.php?post_type=rst_testimonial3.7742.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Really Simple Testimonials
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲11014.41 ▲0.131.59 ▼0.2743.08 ▼0.26
Dashboard /wp-admin2,274 ▲946.03 ▲0.3692.45 ▲2.3238.44 ▼2.01
Posts /wp-admin/edit.php2,175 ▲752.30 ▲0.3138.59 ▲0.9630.54 ▼2.22
Add New Post /wp-admin/post-new.php1,590 ▲5523.36 ▲4.91677.84 ▲49.8038.14 ▼26.76
Media Library /wp-admin/upload.php1,470 ▲734.47 ▲0.25102.59 ▼1.3844.14 ▼1.96
Doc & Support /wp-admin/edit.php?post_type=rst_testimonial&page=rst-support9062.4630.7037.53
All Shortcode /wp-admin/edit.php?post_type=rst_shortcode1,1702.2433.2627.70
Add New /wp-admin/post-new.php?post_type=rst_testimonial2,0933.8874.9236.91
Generate Shortcode /wp-admin/post-new.php?post_type=rst_shortcode4,6863.82149.1640.27
Categories /wp-admin/edit-tags.php?taxonomy=rst_testimonial_category&post_type=rst_testimonial1,3582.1032.8029.54
Frontend Submission /wp-admin/edit.php?post_type=rst_testimonial&page=rst-user-form-options1,2232.3728.0428.88
Testimonials /wp-admin/edit.php?post_type=rst_testimonial1,1882.2734.7429.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/really-simple-testimonials/really-simple-testimonials.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=rst_testimonial&page=rst-support
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/really-simple-testimonials/admin/js/rst-testimonial-admin.js?ver=1697431967:205:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=rst_testimonial
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'value')
    • > GET request to /wp-admin/edit.php?post_type=rst_shortcode
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/really-simple-testimonials/admin/js/rst-testimonial-admin.js?ver=1697431969:205:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=rst_testimonial
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/really-simple-testimonials/admin/js/rst-testimonial-admin.js?ver=1697431970:205:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=rst_testimonial
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'value')
    • > GET request to /wp-admin/edit-tags.php?taxonomy=rst_testimonial_category&post_type=rst_testimonial
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/really-simple-testimonials/admin/js/rst-testimonial-admin.js?ver=1697431974:205:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=rst_testimonial&page=rst-user-form-options
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/really-simple-testimonials/admin/js/rst-testimonial-admin.js?ver=1697431976:205:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=rst_testimonial
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'value')" "TypeError: Cannot read properties of null (reading 'value')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/really-simple-testimonials/admin/js/rst-testimonial-admin.js?ver=1697431978:205:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

really-simple-testimonials/really-simple-testimonials.php 92% from 13 tests

This is the main PHP file of "Really Simple Testimonials" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected6,311 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP127311503,689
CSS943091,833
PO File1271286586
JavaScript3420194
SVG3009

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.41
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%
Functions31
▷ Named functions3096.77%
▷ Anonymous functions13.23%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.76MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/templates/screenshots/theme_2.png91.65KB37.42KB▼ 59.17%
admin/templates/icons/no_image.png25.53KB10.16KB▼ 60.23%
admin/templates/screenshots/theme_1.png47.94KB18.84KB▼ 60.69%
admin/templates/screenshots/theme_4.png172.69KB57.24KB▼ 66.85%
admin/templates/screenshots/theme_5.png225.74KB68.42KB▼ 69.69%