90% jvh-import

Code Review | JVH Import

WordPress plugin JVH Import scored90%from 54 tests.

About plugin

  • Plugin page: jvh-import
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 10, 2022
  • Latest release: Aug 17, 2022
  • Number of updates: 29
  • Update frequency: every 12.9 days
  • Top authors: jaapjvh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 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.17MB] [CPU: ▼0.89ms] Passed 4 tests

This is a short check of server-side resources used by JVH Import
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1839.72 ▲3.78
Dashboard /wp-admin3.50 ▲0.2045.72 ▼1.36
Posts /wp-admin/edit.php3.56 ▲0.2045.70 ▼6.77
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.49 ▲0.79
Media Library /wp-admin/upload.php3.37 ▲0.1438.74 ▲4.29
JVH Import /wp-admin/tools.php?page=import-jvh-feed3.3529.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for JVH Import
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.36 ▲0.011.68 ▲0.1140.83 ▼5.70
Dashboard /wp-admin2,206 ▲325.59 ▲0.0689.26 ▲0.6942.19 ▲1.31
Posts /wp-admin/edit.php2,111 ▲112.04 ▲0.0942.98 ▲8.8336.84 ▲2.67
Add New Post /wp-admin/post-new.php1,545 ▲1918.42 ▼4.65610.42 ▼51.7763.23 ▲11.20
Media Library /wp-admin/upload.php1,408 ▲114.20 ▼0.04114.97 ▲13.0345.32 ▼2.99
JVH Import /wp-admin/tools.php?page=import-jvh-feed8022.0025.7532.41

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
1 plugin tags: jvh

jvh-import/jvh-import.php Passed 13 tests

The main PHP file in "JVH Import" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
Import elements from JVH feed, such as Fluent Forms forms and other elements later on. Used internally within JVH webbouw.

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,139 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP16263191,001
JavaScript118076
SVG10052
CSS10010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.82
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods95
▷ Static methods00.00%
▷ Public methods2425.26%
▷ Protected methods00.00%
▷ Private methods7174.74%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin