Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲1.03ms] Passed 4 tests
Server-side resources used by Smodin Rewriter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.98 ▲4.06 |
Dashboard /wp-admin | 3.44 ▲0.13 | 46.39 ▼1.50 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.96 ▲2.75 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 96.96 ▲3.68 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.00 ▼0.80 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.37 | 32.69 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
smodinrewriter-activated |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Smodin Rewriter: 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 / | 2,843 ▲108 | 13.63 ▼0.67 | 1.88 ▲0.03 | 43.05 ▼1.37 |
Dashboard /wp-admin | 2,249 ▲58 | 5.87 ▲0.98 | 100.66 ▼5.22 | 44.85 ▲4.23 |
Posts /wp-admin/edit.php | 2,140 ▲54 | 2.05 ▲0.01 | 41.59 ▲3.35 | 38.10 ▲4.21 |
Add New Post /wp-admin/post-new.php | 1,569 ▲36 | 18.68 ▼4.47 | 620.32 ▼45.63 | 48.01 ▼10.83 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.32 ▲0.07 | 99.40 ▼12.31 | 45.87 ▼3.42 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 971 | 2.06 | 25.45 | 30.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/smodin-rewriter/lib/tgmpa/tgm-plugin-activation/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smodin-rewriter/views/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function includes_url() in wp-content/plugins/smodin-rewriter/views/button.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (How to trigger the rewrite), #2 (Rewrite confirmation), #3 (Rewrite successful)
smodin-rewriter/smodin-rewriter.php 92% from 13 tests
"Smodin Rewriter" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin11,213 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 36 | 1,867 | 2,430 | 6,583 |
PHP | 11 | 609 | 1,871 | 2,296 |
CSS | 4 | 63 | 84 | 1,653 |
JavaScript | 3 | 43 | 19 | 314 |
Markdown | 1 | 58 | 0 | 281 |
XML | 1 | 5 | 0 | 49 |
JSON | 3 | 0 | 0 | 37 |
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.48 |
Average class complexity | 29.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 11 | 8.80% |
▷ Public methods | 97 | 77.60% |
▷ Protected methods | 23 | 18.40% |
▷ Private methods | 5 | 4.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 10 | 62.50% |
▷ Class constants | 6 | 37.50% |
▷ Public constants | 6 | 100.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
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/lib/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
assets/css/lib/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
assets/css/lib/jquery-ui/images/ui-icons_454545_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
assets/css/lib/jquery-ui/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |
assets/css/lib/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.15KB | ▼ 61.54% |