79% wp-blocked

Code Review | WP Blocked Censorship Monitoring

WordPress plugin WP Blocked Censorship Monitoring scored79%from 54 tests.

About plugin

  • Plugin page: wp-blocked
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Oct 31, 2015
  • Number of updates: 15
  • Update frequency: every 5.7 days
  • Top authors: veganist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /515 total downloads


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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.76ms] Passed 4 tests

Server-side resources used by WP Blocked Censorship Monitoring
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0737.98 ▲4.26
Dashboard /wp-admin3.39 ▲0.0549.91 ▼9.51
Posts /wp-admin/edit.php3.51 ▲0.1548.23 ▲9.07
Add New Post /wp-admin/post-new.php5.97 ▲0.0981.17 ▼16.53
Media Library /wp-admin/upload.php3.32 ▲0.0935.69 ▲2.73
WP Blocked Settings /wp-admin/options-general.php?page=wp-blocked-settings3.2630.44

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

WP Blocked Censorship Monitoring: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.67 ▼0.988.01 ▲6.4438.56 ▲3.70
Dashboard /wp-admin2,202 ▲245.62 ▼0.0983.38 ▼31.6338.57 ▼11.69
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0136.06 ▼0.1334.61 ▼1.19
Add New Post /wp-admin/post-new.php1,529 ▼023.05 ▼0.03668.27 ▲46.5557.49 ▲4.87
Media Library /wp-admin/upload.php1,404 ▲74.14 ▼0.0598.27 ▼0.0945.26 ▲3.06
WP Blocked Settings /wp-admin/options-general.php?page=wp-blocked-settings8471.9924.8331.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-blocked-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-blocked-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-blocked-settings
    • > Notice in wp-content/plugins/wp-blocked/wp-blocked.php+469
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=wp-blocked-settings
    • > Notice in wp-content/plugins/wp-blocked/wp-blocked.php+466
    Undefined index: locale

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-blocked/wp-blocked.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: openrightsgroup, censorship, block, ooni, monitoring...

wp-blocked/wp-blocked.php Passed 13 tests

"WP Blocked Censorship Monitoring" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
131 characters long description:
Wordpress plugin to interact with the Blocked-Middleware by OpenRightsGroup. API credentials can be configured via a settings page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,029 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File49393241

PHP code Passed 2 tests

This is a short overview 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.36
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2596.15%
▷ Protected methods00.00%
▷ Private methods13.85%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin