90% jvh-vc-templates-essentials

Code Review | JVH VC Templates Essentials

WordPress plugin JVH VC Templates Essentials scored90%from 54 tests.

About plugin

  • Plugin page: jvh-vc-templates-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 17, 2021
  • Latest release: Dec 18, 2021
  • Number of updates: 6
  • Update frequency: every 66.3 days
  • Top authors: jaapjvh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.34ms] Passed 4 tests

Server-side resources used by JVH VC Templates Essentials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.82 ▼3.58
Dashboard /wp-admin3.38 ▲0.0851.77 ▼0.97
Posts /wp-admin/edit.php3.44 ▲0.0849.84 ▼0.91
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.48 ▼15.90
Media Library /wp-admin/upload.php3.31 ▲0.0839.43 ▲1.13
All VC Templates /wp-admin/edit.php?post_type=jvh-vc-template3.3737.86
Add VC Template /wp-admin/post-new.php?post_type=jvh-vc-template3.4651.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
category-jvh-template_children

Browser metrics Passed 4 tests

JVH VC Templates Essentials: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.34 ▼0.081.97 ▲0.2743.74 ▲0.37
Dashboard /wp-admin2,221 ▲475.55 ▼0.1285.53 ▼7.6937.35 ▼6.79
Posts /wp-admin/edit.php2,129 ▲262.02 ▼0.1338.07 ▲2.7532.50 ▲0.36
Add New Post /wp-admin/post-new.php1,551 ▲2523.02 ▼0.15640.52 ▲7.6456.86 ▲1.45
Media Library /wp-admin/upload.php1,432 ▲294.22 ▼0.0197.16 ▼1.9743.20 ▼6.00
All VC Templates /wp-admin/edit.php?post_type=jvh-vc-template1,1021.9732.9231.42
Add VC Template /wp-admin/post-new.php?post_type=jvh-vc-template2,4497.56174.5763.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • category-jvh-template_children

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
1 plugin tags: jvh

jvh-vc-templates-essentials/jvh-vc-templates-essential.php 92% from 13 tests

This is the main PHP file of "JVH VC Templates Essentials" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("jvh-vc-templates-essentials.php" instead of "jvh-vc-templates-essential.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected427 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP47210395
CSS23016
JavaScript23016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.67
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods619.35%
▷ Protected methods00.00%
▷ Private methods2580.65%
Functions13
▷ Named functions00.00%
▷ Anonymous functions13100.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin