79% enquir3-testimonial

Code Review | Enquir3 Testimonial

WordPress plugin Enquir3 Testimonial scored79%from 54 tests.

About plugin

  • Plugin page: enquir3-testimonial
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 18, 2019
  • Latest release: Aug 17, 2022
  • Number of updates: 24
  • Update frequency: every 48.8 days
  • Top authors: enquir3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.48ms] Passed 4 tests

A check of server-side resources used by Enquir3 Testimonial
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.2045.40 ▼1.14
Dashboard /wp-admin3.78 ▲0.2158.39 ▲1.37
Posts /wp-admin/edit.php3.83 ▲0.1552.06 ▼2.42
Add New Post /wp-admin/post-new.php6.29 ▲0.1587.37 ▼10.41
Media Library /wp-admin/upload.php3.64 ▲0.1540.87 ▼3.95
Enquir3 Testimonial /wp-admin/options-general.php?page=eq3t_settings3.6035.57

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
eq3t_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Enquir3 Testimonial
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.30 ▲0.161.94 ▲0.2744.21 ▼0.01
Dashboard /wp-admin2,199 ▲195.65 ▼0.0389.58 ▼1.1842.43 ▲0.86
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0234.88 ▼1.7834.29 ▼2.35
Add New Post /wp-admin/post-new.php1,529 ▼1623.44 ▲0.23689.10 ▼20.9753.55 ▼3.68
Media Library /wp-admin/upload.php1,404 ▲44.31 ▼0.0999.41 ▼14.5641.55 ▼3.29
Enquir3 Testimonial /wp-admin/options-general.php?page=eq3t_settings8232.0326.9727.86

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • eq3t_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/enquir3-testimonial/includes/views/feedback_widget_overview.tpl.php
    • > /wp-content/plugins/enquir3-testimonial/includes/views/remsto_feedback_block_item.tpl.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in /var/www/wordpress/wp-content/plugins/enquir3-testimonial/includes/eq3t-settings.inc:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: testimonial, feedback

enquir3-testimonial/enquir3-testimonial.php Passed 13 tests

The primary PHP file in "Enquir3 Testimonial" version 0.2.0 is used by WordPress to initiate all plugin functionality
37 characters long description:
Display Enquir3 Testimonial Overview.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,206 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2296281,202
PHP598114415
Pascal3136446329
CSS14425216
Twig21032
SVG40012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods330.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/images/star.png17.88KB0.81KB▼ 95.44%