78% wp-igniter

Code Review | WordPressIgniter

WordPress plugin WordPressIgniter scored78%from 54 tests.

About plugin

  • Plugin page: wp-igniter
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2013
  • Latest release: May 1, 2015
  • Number of updates: 21
  • Update frequency: every 27.8 days
  • Top authors: dynamodan (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /4,544 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.03MB] [CPU: ▼8.39ms] Passed 4 tests

A check of server-side resources used by WordPressIgniter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0235.44 ▼0.25
Dashboard /wp-admin3.37 ▲0.0243.25 ▼13.71
Posts /wp-admin/edit.php3.48 ▲0.1344.58 ▼4.82
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.51 ▼13.89
Media Library /wp-admin/upload.php3.29 ▲0.0635.52 ▼1.15
WordPressIgniter /wp-admin/options-general.php?page=wp_igniter3.2531.93

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WordPressIgniter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,624 ▼12213.23 ▼1.371.25 ▼0.5242.68 ▲0.54
Dashboard /wp-admin2,210 ▲254.84 ▼0.03108.76 ▼2.3642.52 ▼2.31
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0340.44 ▼2.6235.56 ▼0.67
Add New Post /wp-admin/post-new.php1,536 ▲1721.67 ▼1.57634.70 ▼17.4354.59 ▼11.43
Media Library /wp-admin/upload.php1,392 ▲14.28 ▼0.06107.93 ▲4.6047.67 ▲3.61
WordPressIgniter /wp-admin/options-general.php?page=wp_igniter6901.537.3622.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_igniter
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/wp-igniter/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/wp-igniter/templates/settings.php(5): do_settings_fields()
    #1 wp-content/plugins/wp-igniter/settings.php(214): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): WP_igniter_Settings->plugin_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-igniter/wp_igniter.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-igniter/templates/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: framework, codeigniter, mvc framework, theme development, web application framework...

wp-igniter/wp_igniter.php 92% from 13 tests

The principal PHP file in "WordPressIgniter" v. 1.4 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-igniter.php" instead of "wp_igniter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin385 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP397105385

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.00
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin