72% my-responsive-testimonial

Code Review | Responsive Wordpress Testimonial

WordPress plugin Responsive Wordpress Testimonial scored72%from 54 tests.

About plugin

  • Plugin page: my-responsive-tes...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 8, 2014
  • Latest release: Nov 9, 2014
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: azizultex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,179 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.66MB] [CPU: ▼22.27ms] Passed 4 tests

Server-side resources used by Responsive Wordpress Testimonial
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.37 ▲6.21
Dashboard /wp-admin3.19 ▼0.1131.02 ▼24.77
Posts /wp-admin/edit.php3.44 ▲0.0950.31 ▲0.08
Add New Post /wp-admin/post-new.php3.24 ▼2.6536.88 ▼62.56
Media Library /wp-admin/upload.php3.26 ▲0.0333.46 ▼1.81
Add New Testimonial /wp-admin/post-new.php?post_type=rwpt_custom_post3.1730.75
All Testimonials /wp-admin/edit.php?post_type=rwpt_custom_post3.3033.75

Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/my-responsive-testimonial/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/my-responsive-testimonial/assets/banner-772\303\227250.png"
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Responsive Wordpress Testimonial: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲21413.66 ▼1.0211.65 ▲9.8144.95 ▲1.30
Dashboard /wp-admin2,237 ▲495.89 ▲0.9798.26 ▼8.7574.56 ▲35.30
Posts /wp-admin/edit.php2,117 ▲282.14 ▲0.1737.69 ▼0.2331.96 ▼3.37
Add New Post /wp-admin/post-new.php1,545 ▲3123.22 ▲5.58731.83 ▲24.7953.07 ▲0.13
Media Library /wp-admin/upload.php1,410 ▲254.29 ▲0.04106.80 ▲1.8281.89 ▲33.91
Add New Testimonial /wp-admin/post-new.php?post_type=rwpt_custom_post2,0233.9679.6599.49
All Testimonials /wp-admin/edit.php?post_type=rwpt_custom_post1,1121.9333.5833.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=rwpt_custom_post
    • > Notice in wp-content/plugins/my-responsive-testimonial/index.php+229
    Undefined index: wpcpmeta_noncename
    • > GET request to /wp-admin/post-new.php?post_type=rwpt_custom_post
    • > User notice in wp-includes/functions.php+5905
    Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)
    • > GET request to /wp-admin/edit.php?post_type=rwpt_custom_post
    • > Notice in wp-content/plugins/my-responsive-testimonial/index.php+133
    Trying to get property 'post_type' of non-object

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/my-responsive-testimonial/tinymce/pop_up_window.php
  • 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/my-responsive-testimonial/index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: wordpress testimonial, responsive testimonial, testimonial, testimonial plugin, wordpress testimonial plugin...

my-responsive-testimonial/index.php 85% from 13 tests

The principal PHP file in "Responsive Wordpress Testimonial" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 345 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("my-responsive-testimonial.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,302 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS7484323,260
JavaScript514849922
PHP29744870
SVG100520
XML1716517
HTML1540213

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.83MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/quote-mark.png4.18KB0.86KB▼ 79.45%
img/default_client_img.png10.98KB5.30KB▼ 51.69%
Documentation/img/import.png14.61KB14.94KB0.00%
img/hs.png2.62KB7.54KB0.00%
Documentation/img/setting.png59.62KB24.51KB▼ 58.90%