Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.06MB] [CPU: ▼7.51ms] Passed 4 tests
A check of server-side resources used by Activist
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 45.46 ▲0.16 |
Dashboard /wp-admin | 3.37 ▲0.07 | 58.78 ▲2.10 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.29 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 77.30 ▼27.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.59 ▲0.26 |
Activist /wp-admin/options-general.php?page=activist-config | 3.61 | 38.09 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Activist
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,351 ▼410 | 3.55 ▼10.83 | 1.02 ▼0.74 | 36.65 ▼8.37 |
Dashboard /wp-admin | 1,870 ▼304 | 1.61 ▼3.99 | 17.99 ▼73.25 | 48.18 ▲9.20 |
Posts /wp-admin/edit.php | 2,008 ▼92 | 1.58 ▼0.42 | 7.50 ▼34.23 | 33.48 ▼3.93 |
Add New Post /wp-admin/post-new.php | 71 ▼1,466 | 0.45 ▼22.81 | 0.21 ▼644.71 | 9.69 ▼44.80 |
Media Library /wp-admin/upload.php | 69 ▼1,328 | 0.45 ▼3.77 | 0.79 ▼95.17 | 9.54 ▼33.81 |
Activist /wp-admin/options-general.php?page=activist-config | 950 | 1.41 | 8.03 | 24.05 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=activist-config
- > Error in wp-content/plugins/activist/includes/activist.class.php+66
Uncaught ArgumentCountError: Too few arguments to function Activist::defer_script(), 1 passed in wp-includes/class-wp-hook.php on line 312 and exactly 2 expected in wp-content/plugins/activist/includes/activist.class.php:66
Stack trace:
#0 wp-includes/class-wp-hook.php(312): Activist::defer_script()
#1 wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 wp-includes/class-wp-scripts.php(432): apply_filters()
#3 wp-includes/class-wp-dependencies.php(137): WP_Scripts->do_item()
#4 wp-includes/class-wp-scripts.php(782): WP_Dependencies->do_items()
#5 wp-includes/script-loader.php(2099): WP_Scripts->do_footer_items()
#6 wp-includes/script-loader.php(2194): print_footer_scripts()
#7 wp-includes/class-wp-hook.php(310): _wp_footer_scripts()
#8 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#9
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/activist/views/warning.php
- > /wp-content/plugins/activist/activist.php
- > /wp-content/plugins/activist/views/frame.php
- > /wp-content/plugins/activist/views/offline.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/activist/views/config.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
4 plugin tags: caching, access, block, censorship
activist/activist.php Passed 13 tests
The entry point to "Activist" version 0.1.1 is a PHP file that has certain tags in its header comment area
47 characters long description:
Activate your users against network disruptions
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 plugin492 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 71 | 50 | 454 |
Markdown | 1 | 6 | 0 | 18 |
JavaScript | 1 | 2 | 1 | 11 |
HTML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 27 | 100.00% |
▷ Public methods | 18 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 57.25KB | 15.10KB | ▼ 73.63% |