83% consultimator

Code Review | CONSULTIMATOR Shortcode

WordPress plugin CONSULTIMATOR Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: consultimator
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 7, 2019
  • Latest release: Jul 22, 2023
  • Number of updates: 23
  • Update frequency: every 58.8 days
  • Top authors: lennartz68 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.67ms] Passed 4 tests

A check of server-side resources used by CONSULTIMATOR Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.50 ▲4.56
Dashboard /wp-admin3.33 ▲0.0245.16 ▼0.98
Posts /wp-admin/edit.php3.38 ▲0.0243.00 ▼4.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.79 ▼7.61
Media Library /wp-admin/upload.php3.25 ▲0.0237.67 ▲2.25

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CONSULTIMATOR Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14814.13 ▼0.275.62 ▲3.9345.86 ▲7.18
Dashboard /wp-admin2,203 ▲114.79 ▼0.12113.74 ▼3.4441.55 ▼0.22
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0436.36 ▼11.9834.44 ▼1.42
Add New Post /wp-admin/post-new.php1,540 ▲1123.52 ▲5.13613.66 ▼31.8351.96 ▲1.26
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.0393.43 ▼1.2040.90 ▼3.57

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_root() in wp-content/plugins/consultimator/consultimator-wp-plugin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

consultimator/consultimator-wp-plugin.php 85% from 13 tests

The primary PHP file in "CONSULTIMATOR Shortcode" version 1.3.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("consultimator.php" instead of "consultimator-wp-plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 362 characters long)

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
Good job! No executable or dangerous file extensions detected1,827 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6394801,722
PHP1518104
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.83
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin