84% flurry

Code Review | Flurry

WordPress plugin Flurry scored84%from 54 tests.

About plugin

  • Plugin page: flurry
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 8, 2016
  • Latest release: Sep 8, 2018
  • Number of updates: 10
  • Update frequency: every 63.4 days
  • Top authors: joshmccarty (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50+ active /6,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Flurry
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.19 ▼3.87
Dashboard /wp-admin3.34 ▲0.0445.05 ▼5.72
Posts /wp-admin/edit.php3.39 ▲0.0348.63 ▲2.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.04 ▼1.46
Media Library /wp-admin/upload.php3.26 ▲0.0331.97 ▼1.23
Flurry /wp-admin/themes.php?page=flurry3.2331.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flurry
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,031 ▲29613.67 ▼1.0011.55 ▲9.4155.78 ▲10.45
Dashboard /wp-admin2,207 ▲195.81 ▼0.0593.35 ▼21.4440.03 ▼5.87
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0237.37 ▲0.5034.89 ▲1.35
Add New Post /wp-admin/post-new.php1,517 ▼1617.69 ▼5.51657.24 ▲6.0860.83 ▼7.83
Media Library /wp-admin/upload.php1,395 ▲74.26 ▲0.0994.63 ▼2.5545.00 ▼0.54
Flurry /wp-admin/themes.php?page=flurry1,6682.6364.7442.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/flurry/uninstall.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/flurry/flurry.php:31

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: winter, jquery, falling snow, snowing, snow...

flurry/flurry.php Passed 13 tests

"Flurry" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Adds falling snow to your site using the Flurry plugin for jQuery.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin558 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4104144554
JavaScript21164

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.23MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png19.42KB2.15KB▼ 88.93%
assets/banner-772x250.png24.27KB3.98KB▼ 83.61%
assets/screenshot-1.png187.42KB89.07KB▼ 52.47%