83% jhe-ignitiondeck-widget

Code Review | jhe-ignitiondeck-widget

WordPress plugin jhe-ignitiondeck-widget scored 83% from 54 tests.

About plugin

  • Plugin page: jhe-ignitiondeck-...
  • Plugin version: 1...
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 11, 2020
  • Latest release: Jun 11, 2020
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: junh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.46ms] Passed 4 tests

Analyzing server-side resources used by jhe-ignitiondeck-widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.93 ▼2.25
Dashboard /wp-admin3.32 ▲0.0144.71 ▼5.56
Posts /wp-admin/edit.php3.37 ▲0.0145.80 ▼1.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.13 ▲5.62
Media Library /wp-admin/upload.php3.24 ▲0.0136.91 ▲3.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for jhe-ignitiondeck-widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.65 ▼0.731.75 ▼0.1644.01 ▼7.68
Dashboard /wp-admin2,203 ▲125.88 ▲1.0095.09 ▼11.8540.32 ▼5.94
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0734.99 ▼2.1032.44 ▼0.97
Add New Post /wp-admin/post-new.php1,534 ▲623.17 ▼0.21605.47 ▼61.7553.43 ▲0.00
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.0795.52 ▼3.1244.46 ▲0.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_jhe_fh_project_grid_widget
    • can_compress_scripts

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jhe-ignitiondeck-widget/jhe-ignitiondeck-plugin_wp_deployed.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (widget screenshot widget.png)
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

jhe-ignitiondeck-widget/jhe-ignitiondeck-plugin_wp_deployed.php 85% from 13 tests

The main PHP file in "jhe-ignitiondeck-widget" ver. 1... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1...")
  • Main file name: The principal plugin file should be the same as the plugin slug ("jhe-ignitiondeck-widget.php" instead of "jhe-ignitiondeck-plugin_wp_deployed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin149 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11160149

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity10.50
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin