78% finnish-internet-black-day

Code Review | Finnish Internet black day

WordPress plugin Finnish Internet black day scored78%from 54 tests.

About plugin

  • Plugin page: finnish-internet-...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Apr 23, 2013
  • Number of updates: 34
  • Update frequency: every 0.4 days
  • Top authors: SipuliSopuli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,241 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Finnish Internet black day
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0828.46 ▼11.46
Dashboard /wp-admin3.32 ▲0.0145.89 ▼7.31
Posts /wp-admin/edit.php3.37 ▲0.0150.90 ▲2.18
Add New Post /wp-admin/post-new.php5.90 ▲0.01111.51 ▲7.36
Media Library /wp-admin/upload.php3.24 ▲0.0133.42 ▼3.44
Finnish Internet black day /wp-admin/options-general.php?page=finnish-internet-black-day/mustapaiva.php3.1827.74

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

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

Browser metrics Passed 4 tests

Finnish Internet black day: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.65 ▼0.722.49 ▲0.6938.28 ▼6.85
Dashboard /wp-admin2,210 ▲225.86 ▲0.06109.13 ▲4.5344.15 ▼3.35
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0740.23 ▲3.0737.41 ▲4.45
Add New Post /wp-admin/post-new.php1,517 ▼217.41 ▼5.68670.07 ▼4.9158.85 ▲9.66
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.11105.28 ▼4.2347.41 ▲0.47
Finnish Internet black day /wp-admin/options-general.php?page=finnish-internet-black-day/mustapaiva.php8672.0622.4729.97

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=finnish-internet-black-day/mustapaiva.php
    • > Notice in wp-content/plugins/finnish-internet-black-day/mustapaiva.php+63
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/finnish-internet-black-day/mustapaiva.php:12

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

finnish-internet-black-day/mustapaiva.php 85% from 13 tests

The main file in "Finnish Internet black day" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("finnish-internet-black-day.php" instead of "mustapaiva.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin181 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1108112
JavaScript114169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions14
▷ Named functions14100.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
No PNG files were detected