89% firefly-effect-jquery

Code Review | FireFly Effect on WordPress

WordPress plugin FireFly Effect on WordPress scored 89% from 54 tests.

About plugin

  • Plugin page: firefly-effect-jq...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Dec 26, 2012
  • Latest release: Dec 26, 2012
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: motyar (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active / 3,749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by FireFly Effect on WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.25 ▼4.68
Dashboard /wp-admin3.31 ▲0.0143.44 ▼6.28
Posts /wp-admin/edit.php3.36 ▲0.0046.48 ▼9.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.04 ▼10.05
Media Library /wp-admin/upload.php3.23 ▲0.0033.42 ▼0.81

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by FireFly Effect on WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.131.69 ▲0.0542.46 ▼2.84
Dashboard /wp-admin2,206 ▲185.85 ▼0.08107.64 ▼2.4043.29 ▲0.97
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.1139.65 ▼0.5834.12 ▼4.99
Add New Post /wp-admin/post-new.php1,514 ▼017.71 ▲0.08612.72 ▼23.7660.47 ▲11.89
Media Library /wp-admin/upload.php1,382 ▼64.23 ▼0.0395.82 ▼2.7242.25 ▲0.54

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

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === firefly-effect-jquery === )
The official readme.txt is a good inspiration

firefly-effect-jquery/init.php 85% from 13 tests

The primary PHP file in "FireFly Effect on WordPress" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 195 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("firefly-effect-jquery.php" instead of "init.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
No dangerous file extensions were detected68 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2111344
PHP151219
CSS1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/spark4.png0.30KB0.15KB▼ 49.35%
img/spark3.png0.72KB0.45KB▼ 37.96%
img/spark2.png0.45KB0.29KB▼ 35.70%
img/spark.png0.35KB0.21KB▼ 40.83%