83% innvonix-testimonials

Code Review | Innvonix Testimonials

WordPress plugin Innvonix Testimonials scored83%from 54 tests.

About plugin

  • Plugin page: innvonix-testimon...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Jun 29, 2017
  • Latest release: Jun 29, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: innvonix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.67ms] Passed 4 tests

A check of server-side resources used by Innvonix Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.12 ▲1.91
Dashboard /wp-admin3.35 ▲0.0446.95 ▼0.24
Posts /wp-admin/edit.php3.40 ▲0.0446.71 ▼1.89
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.93 ▼12.14
Media Library /wp-admin/upload.php3.26 ▲0.0434.00 ▼0.40
Add New /wp-admin/post-new.php?post_type=invx_testimonials3.3845.86
All Testimonials /wp-admin/edit.php?post_type=invx_testimonials3.3136.70

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Innvonix Testimonials
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲24213.73 ▼0.927.55 ▲5.6652.83 ▲12.95
Dashboard /wp-admin2,233 ▲455.89 ▲0.98103.20 ▲4.5142.05 ▼4.16
Posts /wp-admin/edit.php2,116 ▲272.05 ▲0.0736.74 ▼3.9535.96 ▼1.46
Add New Post /wp-admin/post-new.php1,557 ▲1522.60 ▲4.40631.09 ▲10.6648.41 ▲0.54
Media Library /wp-admin/upload.php1,418 ▲334.18 ▼0.0199.84 ▼5.0744.16 ▲3.50
Add New /wp-admin/post-new.php?post_type=invx_testimonials2,2327.61186.1366.44
All Testimonials /wp-admin/edit.php?post_type=invx_testimonials1,0941.9332.3830.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/innvonix-testimonials/admin/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/innvonix-testimonials/includes/functions.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/innvonix-testimonials/innvonix-testimonials.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("#")
Please take inspiration from this readme.txt

innvonix-testimonials/innvonix-testimonials.php 85% from 13 tests

The main PHP script in "Innvonix Testimonials" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/i18n/languages/")
  • Description: The description should be shorter than 140 characters (currently 150 characters long)

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
Success! There were no dangerous files found in this plugin5,044 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS650442,826
JavaScript2210241,318
SVG100685
PHP35275215

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin