Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼151.90ms] Passed 4 tests
A check of server-side resources used by JMS URL Rewrite Rule
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 36.14 ▲12.53 |
Dashboard /wp-admin | 3.09 ▲0.04 | 49.12 ▲0.48 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 49.28 ▲3.96 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 92.53 ▼607.63 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.30 ▼4.40 |
Fixed URL /wp-admin/admin.php?page=jms-fixed-url-rewrite-menu | 3.00 | 32.25 |
POST URL /wp-admin/admin.php?page=jms-url-rewrite-top-menu | 3.00 | 30.53 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for JMS URL Rewrite Rule
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 16.00 ▲0.05 | 10.44 ▼0.23 | 45.90 ▼7.23 |
Dashboard /wp-admin | 3,001 ▲64 | 5.84 ▼0.33 | 151.02 ▼6.17 | 117.31 ▲0.46 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.72 ▼0.00 | 66.61 ▼4.97 | 89.02 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,637 ▼46 | 21.49 ▲3.10 | 304.52 ▼164.49 | 103.19 ▼17.00 |
Media Library /wp-admin/upload.php | 1,841 ▲34 | 5.04 ▼0.04 | 172.29 ▲6.51 | 117.37 ▲0.12 |
Fixed URL /wp-admin/admin.php?page=jms-fixed-url-rewrite-menu | 1,126 | 2.11 | 55.01 | 93.70 |
POST URL /wp-admin/admin.php?page=jms-url-rewrite-top-menu | 1,124 | 2.21 | 62.74 | 92.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/jms-url-rewrite-rule/jms-urlrewrite-rule.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/jms-url-rewrite-rule/template/fixed_url_rules.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/jms-url-rewrite-rule/template/post_url_rules.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: htaccess, url rewrite, permalink
jms-url-rewrite-rule/jms-urlrewrite-rule.php 85% from 13 tests
"JMS URL Rewrite Rule" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jms-url-rewrite-rule.php" instead of "jms-urlrewrite-rule.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 285 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 plugin220 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 29 | 220 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin