Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.43ms] Passed 4 tests
An overview of server-side resources used by GS GoMobi Redirector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.05 ▼16.64 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.41 ▲3.26 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.13 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.15 ▼15.96 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 33.92 ▲1.95 |
GS GoMobi Redirector /wp-admin/options-general.php?page=my-plugin | 3.24 | 34.92 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
gsgmr-rootonly |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by GS GoMobi Redirector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▲0.18 | 1.61 ▼0.55 | 37.56 ▼12.33 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.08 | 106.78 ▲0.58 | 41.89 ▼0.34 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.04 | 39.64 ▼1.09 | 35.56 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.29 ▼0.16 | 611.99 ▲9.49 | 51.56 ▲1.58 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.19 ▼0.01 | 97.71 ▼4.47 | 42.30 ▼2.38 |
GS GoMobi Redirector /wp-admin/options-general.php?page=my-plugin | 891 | 2.02 | 24.04 | 28.29 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- gsgmr-rootonly
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gs-gomobi-redirector/index.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== gs-gomobi-redirector ===
) - Screenshots: These screenshots do not have images: #1 (Settings are accessed via the Wordpress Settings menu option gsgmr-screenshot0.png), #2 (Easily modify URL of your goMobi website gsgmr-screenshot3.png)
gs-gomobi-redirector/index.php 85% from 13 tests
"GS GoMobi Redirector" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gs-gomobi-redirector.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 393 characters long)
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
Success! There were no dangerous files found in this plugin210 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 18 | 210 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
3 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gsgmr-screenshot0.png | 26.90KB | 9.36KB | ▼ 65.21% |
assets/gsgmr-screenshot3.png | 55.88KB | 21.36KB | ▼ 61.78% |
assets/gsgmr-screenshot1.png | 57.36KB | 20.69KB | ▼ 63.94% |