Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼295.98ms] Passed 4 tests
Analyzing server-side resources used by WPGraphQL Redirection Addon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 55.01 ▲4.76 |
Dashboard /wp-admin | 3.44 ▲0.03 | 34.21 ▲0.98 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 37.45 ▲1.62 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 90.81 ▼1,186.33 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 23.61 ▼0.20 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WPGraphQL Redirection Addon: 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 / | 3,815 ▲61 | 16.06 ▲0.33 | 7.32 ▲1.08 | 2.68 ▲0.23 |
Dashboard /wp-admin | 2,917 ▲56 | 6.16 ▼0.05 | 116.03 ▼20.38 | 152.92 ▼9.46 |
Posts /wp-admin/edit.php | 2,716 ▲22 | 3.23 ▼0.13 | 62.54 ▼2.61 | 144.83 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,702 ▲34 | 18.77 ▼0.13 | 393.43 ▼7.03 | 155.72 ▲1.29 |
Media Library /wp-admin/upload.php | 1,720 ▲19 | 5.59 ▲0.06 | 145.41 ▼2.61 | 197.72 ▲8.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 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
6 plugin tags: graphql, headless wordpress, decoupled wordpress, redirection, jamstack...
add-wpgraphql-redirection/wp-graphql-redirection.php 77% from 13 tests
The entry point to "WPGraphQL Redirection Addon" version 0.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("add-wpgraphql-redirection.php" instead of "wp-graphql-redirection.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin141 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 12 | 97 |
Markdown | 1 | 8 | 0 | 24 |
JSON | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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.11MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner.png | 116.30KB | 35.27KB | ▼ 69.68% |