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.13MB] [CPU: ▼7.17ms] Passed 4 tests
An overview of server-side resources used by Forum Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 27.59 ▼17.33 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.04 ▼5.97 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.67 ▲2.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.36 ▼4.90 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.25 ▼0.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Forum Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,445 ▼316 | 14.16 ▼0.19 | 0.51 ▼1.27 | 18.55 ▼25.71 |
Dashboard /wp-admin | 2,195 ▲27 | 5.57 ▲0.03 | 88.36 ▼16.13 | 43.37 ▼3.60 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.02 | 37.25 ▲0.84 | 33.10 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 18.10 ▼5.24 | 637.56 ▼72.46 | 82.88 ▲10.44 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.01 | 97.65 ▼6.63 | 48.81 ▲3.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: buddypress, redirect, bbpress, forums, forum
forum-redirect/class-forum-redirect.php 77% from 13 tests
The primary PHP file in "Forum Redirect" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("forum-redirect.php" instead of "class-forum-redirect.php")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected131 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 55 | 154 | 127 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected