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
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.98 ▲4.26 |
Dashboard /wp-admin | 3.39 ▲0.05 | 49.91 ▼9.51 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.23 ▲9.07 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 81.17 ▼16.53 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.69 ▲2.73 |
WP Blocked Settings /wp-admin/options-general.php?page=wp-blocked-settings | 3.26 | 30.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 |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲133 | 13.67 ▼0.98 | 8.01 ▲6.44 | 38.56 ▲3.70 |
Dashboard /wp-admin | 2,202 ▲24 | 5.62 ▼0.09 | 83.38 ▼31.63 | 38.57 ▼11.69 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.01 | 36.06 ▼0.13 | 34.61 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.05 ▼0.03 | 668.27 ▲46.55 | 57.49 ▲4.87 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.14 ▼0.05 | 98.27 ▼0.09 | 45.26 ▲3.06 |
WP Blocked Settings /wp-admin/options-general.php?page=wp-blocked-settings | 847 | 1.99 | 24.83 | 31.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
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 101 | 122 | 546 |
PO File | 4 | 93 | 93 | 241 |
CSS | 1 | 20 | 15 | 108 |
Markdown | 1 | 47 | 0 | 86 |
JavaScript | 1 | 5 | 9 | 48 |
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 code | 0.36 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.85% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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