77% fireplug-in

Code Review | Fireplug-in

WordPress plugin Fireplug-in scored 77% from 54 tests.

About plugin

  • Plugin page: fireplug-in
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: May 24, 2013
  • Latest release: May 31, 2013
  • Number of updates: 21
  • Update frequency: every 0.3 days
  • Top authors: cmwslw (61.9%)travistruett (42.86%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Fireplug-in
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.87 ▼2.67
Dashboard /wp-admin3.33 ▲0.0345.97 ▼5.01
Posts /wp-admin/edit.php3.38 ▲0.0347.65 ▼4.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.00 ▼7.03
Media Library /wp-admin/upload.php3.26 ▲0.0337.27 ▲0.64

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fireplug-in
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14913.58 ▼1.018.73 ▲6.5844.98 ▼4.88
Dashboard /wp-admin2,206 ▲244.87 ▼0.0497.45 ▼5.6639.29 ▼4.43
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0038.69 ▲4.2035.05 ▲0.17
Add New Post /wp-admin/post-new.php1,533 ▼023.13 ▼0.05639.72 ▼20.8554.78 ▲1.21
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.1497.60 ▼15.5442.91 ▼9.31

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 0% 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fireplug-in/views/public.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/fireplug-in/views/admin.php:17

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)
There were no browser issues found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === fireplug-in === )
  • Screenshots: Add images for these screenshots: #1 (Get Credit button on article.), #2 (Zoomed in Get Credit button.), #3 (Fireplug-in on the Plugin settings page.)
You can take inspiration from this readme.txt

fireplug-in/fireplugin.php 69% from 13 tests

The main PHP file in "Fireplug-in" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fireplug-in.php" instead of "fireplugin.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: The description should be shorter than 140 characters (currently 148 characters long)
  • Domain Path: The domain path folder was not found ("/lang")

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 plugin163 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP549216107
Markdown122044
JavaScript20112
CSS2020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png18.32KB5.20KB▼ 71.63%
assets/banner-772x250.png23.03KB14.00KB▼ 39.18%
screenshot-3.png10.83KB2.44KB▼ 77.43%
screenshot-1.png91.11KB28.39KB▼ 68.84%