94% blackout-congress

Code Review | Blackout Congress

WordPress plugin Blackout Congress scored 94% from 54 tests.

About plugin

  • Plugin page: blackout-congress
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 5.8.1
  • First release: May 29, 2015
  • Latest release: May 30, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: eherman24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 559 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼134.27ms] Passed 4 tests

An overview of server-side resources used by Blackout Congress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1239.90 ▲22.34
Dashboard /wp-admin3.06 ▲0.0139.03 ▼4.80
Posts /wp-admin/edit.php3.11 ▲0.0142.95 ▲1.59
Add New Post /wp-admin/post-new.php5.43 ▼0.0193.55 ▼528.41
Media Library /wp-admin/upload.php3.01 ▼0.0030.91 ▼5.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Blackout Congress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲23116.23 ▲0.3412.35 ▲4.8354.17 ▲5.29
Dashboard /wp-admin2,967 ▲395.91 ▼0.09137.68 ▲5.46113.57 ▼7.32
Posts /wp-admin/edit.php2,739 ▲32.69 ▼0.0065.30 ▲3.9490.16 ▼0.59
Add New Post /wp-admin/post-new.php1,691 ▲19118.98 ▲0.41366.35 ▲16.4099.51 ▼3.59
Media Library /wp-admin/upload.php1,807 ▼05.01 ▲0.00145.18 ▼7.75110.04 ▼14.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/blackout-congress/blackout-congress.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: blackout, sopa, congress

blackout-congress/blackout-congress.php Passed 13 tests

The main PHP file in "Blackout Congress" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Blackout congress from visiting your site. Protest the system man!

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
There were no executable files found in this plugin19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown13012
PHP13207

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected