83% picignite

Code Review | Pic Ignite

WordPress plugin Pic Ignite scored 83% from 54 tests.

About plugin

  • Plugin page: picignite
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 6.3.1
  • First release: Aug 15, 2014
  • Latest release: Sep 24, 2014
  • Number of updates: 32
  • Update frequency: every 1.3 days
  • Top authors: picignite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.41ms] Passed 4 tests

A check of server-side resources used by Pic Ignite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.71 ▼5.88
Dashboard /wp-admin3.34 ▲0.0444.99 ▼8.28
Posts /wp-admin/edit.php3.39 ▲0.0449.61 ▲5.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0494.10 ▲2.22
Media Library /wp-admin/upload.php3.27 ▲0.0435.08 ▲2.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pic Ignite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.23 ▼1.231.89 ▼0.0441.50 ▼12.58
Dashboard /wp-admin2,224 ▲364.90 ▼0.91100.96 ▼19.1270.49 ▲16.42
Posts /wp-admin/edit.php2,107 ▲182.01 ▲0.0141.13 ▲3.5634.34 ▼0.43
Add New Post /wp-admin/post-new.php1,536 ▲2223.21 ▲5.54698.18 ▲97.6652.77 ▼7.94
Media Library /wp-admin/upload.php1,400 ▲124.16 ▼0.07100.45 ▼3.7474.95 ▲28.62

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/picignite/picignite.php:91

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #2 (Examples of links in your content) image not found
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === picignite === )
Please take inspiration from this readme.txt

picignite/picignite.php 92% from 13 tests

The primary PHP file in "Pic Ignite" version 0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)

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 detected170 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP128170

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.56MB with 0.43MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png571.16KB182.25KB▼ 68.09%
images/logo_pi.png4.18KB0.61KB▼ 85.38%