Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.89MB] [CPU: ▼39.05ms] Passed 4 tests
Analyzing server-side resources used by Groups 404 Redirect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 47.34 ▼0.26 |
Dashboard /wp-admin | 3.06 ▼0.25 | 25.72 ▼28.84 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 25.92 ▼28.76 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 25.11 ▼82.68 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 22.72 ▼15.92 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Groups 404 Redirect: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▲0.06 | 1.72 ▼0.06 | 39.23 ▼6.25 |
Dashboard /wp-admin | 2,189 ▲18 | 5.59 ▼0.00 | 97.15 ▼9.19 | 42.90 ▼2.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 36.34 ▼3.92 | 33.20 ▼4.04 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.67 ▲0.58 | 687.95 ▲18.45 | 59.88 ▼1.70 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▼0.02 | 100.07 ▼5.78 | 42.00 ▼4.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/groups-404-redirect/groups-404-redirect.php+73
Use of undefined constant GROUPS_PLUGIN_DOMAIN - assumed 'GROUPS_PLUGIN_DOMAIN' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/groups-404-redirect/groups-404-redirect.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
5 plugin tags: access, access control, members, groups, memberships
groups-404-redirect/groups-404-redirect.php Passed 13 tests
"Groups 404 Redirect" version 1.8.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
Redirect 404's when a visitor tries to access a page protected by Groups.
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
Good job! No executable or dangerous file extensions detected388 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 86 | 124 | 388 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 7.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 65.74KB | 19.49KB | ▼ 70.36% |