10% wp-ignitor

Code Review | WP Ignitor

WordPress plugin WP Ignitor scored 10% from 54 tests.

About plugin

  • Plugin page: wp-ignitor
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.9-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2020
  • Latest release: Sep 28, 2022
  • Number of updates: 12
  • Update frequency: every 53.8 days
  • Top authors: ka2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 806 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/wp-ignitor/src/wpIgnitor.php+268
    Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-ignitor/src/wpIgnitor.php:268
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): wpIgnitor\wpIgnitor::plugin_activation()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.28ms] Passed 4 tests

This is a short check of server-side resources used by WP Ignitor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.58 ▼2.51
Dashboard /wp-admin3.31 ▲0.0048.06 ▼2.84
Posts /wp-admin/edit.php3.36 ▲0.0049.39 ▲2.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.02 ▼2.67
Media Library /wp-admin/upload.php3.23 ▲0.0038.28 ▲4.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Ignitor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.16 ▼1.241.98 ▼0.0746.29 ▲0.24
Dashboard /wp-admin2,206 ▲185.91 ▲1.05108.58 ▲1.1640.84 ▼0.54
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0338.63 ▲4.2935.64 ▲1.10
Add New Post /wp-admin/post-new.php1,534 ▼923.32 ▲4.73587.71 ▼39.7849.32 ▲3.53
Media Library /wp-admin/upload.php1,388 ▼04.16 ▲0.0197.80 ▼8.5642.27 ▼0.65

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
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ignitor/views/help-utils.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ignitor/views/help-login.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-ignitor/views/settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ignitor/views/help-conceal.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ignitor/views/utils.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-ignitor/views/login.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-ignitor/views/globals.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'wpIgnitor\\abstractClass' not found in wp-content/plugins/wp-ignitor/src/wpIgnitor.php:14
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-ignitor/views/conceal.php:8
    • > PHP Notice
      Undefined variable: current_tab in wp-content/plugins/wp-ignitor/views/settings.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: management

wp-ignitor/wp-ignitor.php 85% from 13 tests

The principal PHP file in "WP Ignitor" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4.0" instead of "7.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected6,149 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP201991,4512,801
JavaScript13452351,491
CSS1244281,054
PO File1250261772
SVG30031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity84.33
▷ Minimum class complexity8.00
▷ Maximum class complexity200.00
Average method complexity5.53
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces1
Interfaces0
Traits4
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods101
▷ Static methods2625.74%
▷ Public methods9493.07%
▷ Protected methods32.97%
▷ Private methods43.96%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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