Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/cat-signal/cat-signal.php+250
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.82MB] [CPU: ▼198.35ms] Passed 4 tests
This is a short check of server-side resources used by Internet Defense League Cat Signal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼1.02 | 7.53 ▼27.93 |
Dashboard /wp-admin | 1.83 ▼1.22 | 5.78 ▼54.18 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 6.81 ▼47.58 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.60 | 6.53 ▼656.51 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 7.43 ▼35.12 |
Cat Signal /wp-admin/options-general.php?page=cat_signal | 1.83 | 9.48 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Internet Defense League Cat Signal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,714 ▲142 | 16.08 ▲0.45 | 11.18 ▲2.10 | 51.00 ▲1.91 |
Dashboard /wp-admin | 2,978 ▲44 | 6.05 ▲0.10 | 160.19 ▼1.74 | 114.96 ▼0.88 |
Posts /wp-admin/edit.php | 2,747 ▲8 | 2.72 ▲0.01 | 108.88 ▲35.77 | 97.53 ▲3.81 |
Add New Post /wp-admin/post-new.php | 1,689 ▲74 | 16.21 ▼4.75 | 389.58 ▲56.97 | 109.26 ▼7.56 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.04 ▲0.00 | 191.37 ▲11.17 | 128.05 ▲2.80 |
Cat Signal /wp-admin/options-general.php?page=cat_signal | 1,178 | 2.09 | 59.55 | 93.33 |
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
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/cat-signal/cat-signal.php+250
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cat_signal
- > Notice in wp-content/plugins/cat-signal/cat-signal.php+80
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=cat_signal
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=cat_signal
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cat_signal
- > Notice in wp-content/plugins/cat-signal/cat-signal.php+118
Undefined index: location
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cat-signal/cat-signal.php:13
- > 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 96% from 29 tests
readme.txt Passed 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
5 plugin tags: cat signal, internet defense league, online activism, freedom, activism
cat-signal/cat-signal.php 92% from 13 tests
"Internet Defense League Cat Signal" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
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 plugin329 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 35 | 241 |
Markdown | 1 | 34 | 0 | 70 |
JavaScript | 2 | 0 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.96MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/banner.png | 74.63KB | 22.21KB | ▼ 70.24% |
img/StopSecrecy.png | 36.89KB | 15.40KB | ▼ 58.26% |
img/modal.png | 59.84KB | 20.89KB | ▼ 65.10% |
img/icon.png | 783.47KB | 10.94KB | ▼ 98.60% |
img/icon-256x256.png | 12.33KB | 5.54KB | ▼ 55.05% |