Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.54ms] Passed 4 tests
Analyzing server-side resources used by Rewrite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.85 ▲2.01 |
Dashboard /wp-admin | 3.42 ▲0.08 | 52.40 ▼14.93 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.39 ▲2.04 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 88.53 ▼15.29 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.09 ▲4.49 |
Option /wp-admin/admin.php?page=rewrite-plugin-option | 3.29 | 33.04 |
Rewrite /wp-admin/admin.php?page=rewrite-plugin | 3.29 | 31.04 |
About /wp-admin/admin.php?page=rewrite-plugin-about | 3.29 | 32.24 |
Server storage [IO: ▲0.04MB] [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: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
Browser metrics Passed 4 tests
Rewrite: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.20 ▼1.15 | 2.28 ▲0.59 | 45.50 ▲4.45 |
Dashboard /wp-admin | 2,220 ▲28 | 5.83 ▲0.92 | 103.11 ▼8.33 | 74.86 ▲26.40 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.00 ▼0.02 | 37.82 ▼3.61 | 37.32 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.02 ▼0.11 | 739.39 ▲122.05 | 54.25 ▼7.68 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.24 ▲0.07 | 101.08 ▲2.33 | 77.87 ▲31.84 |
Option /wp-admin/admin.php?page=rewrite-plugin-option | 716 | 1.69 | 19.21 | 20.28 |
Rewrite /wp-admin/admin.php?page=rewrite-plugin | 716 | 1.69 | 19.34 | 20.21 |
About /wp-admin/admin.php?page=rewrite-plugin-about | 716 | 1.48 | 10.67 | 21.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rewrite-plugin-about
- > Error in wp-content/plugins/rewrite/options/easy-options.php+171
Uncaught Error: [] operator not supported for strings in wp-content/plugins/rewrite/options/easy-options.php:171
Stack trace:
#0 wp-includes/class-wp-hook.php(310): EasyOptions->tab()
#1 wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 wp-content/plugins/rewrite/rewrite.php(245): apply_filters()
#3 wp-includes/class-wp-hook.php(310): RewritePluginOption->page()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown
SRP Passed 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
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
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
rewrite/rewrite.php Passed 13 tests
Analyzing the main PHP file in "Rewrite" version 0.2.1
78 characters long description:
URL rewrite management. Edit/add/backup/restore/test rewrite rule in easy way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin727 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 84 | 57 | 713 |
JavaScript | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Cursor_drag_arrow.png | 0.37KB | 0.26KB | ▼ 29.74% |
options/images/icon-setting-large.png | 1.78KB | 1.44KB | ▼ 19.16% |
options/images/icon-setting-small.png | 0.80KB | 0.67KB | ▼ 16.12% |