Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲1.43ms] Passed 4 tests
Analyzing server-side resources used by Simple Htaccess Redirects
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.45 ▲1.47 |
Dashboard /wp-admin | 3.46 ▲0.16 | 46.99 ▲2.08 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 43.85 ▲0.21 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 82.78 ▲2.92 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 36.37 ▲1.97 |
Redirect Settings /wp-admin/options-general.php?page=PK-redirect-settings | 3.68 | 45.34 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 11 new options
New WordPress options |
---|
_PK_created_default |
_PK_css_options |
_PK_js_options |
theysaidso_admin_options |
_PK_jpg_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
_PK_png_options |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Htaccess Redirects
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.44 ▲0.05 | 1.80 ▼0.34 | 41.47 ▼3.74 |
Dashboard /wp-admin | 2,212 ▲33 | 5.80 ▲0.92 | 100.82 ▲0.44 | 40.34 ▼6.40 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.07 ▲0.02 | 34.97 ▲2.28 | 30.23 ▼5.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.19 ▲0.02 | 672.79 ▼8.23 | 63.78 ▲7.75 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.25 ▲0.01 | 93.99 ▼8.47 | 40.97 ▼4.04 |
Redirect Settings /wp-admin/options-general.php?page=PK-redirect-settings | 2,153 | 1.88 | 29.31 | 65.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 18 options in the database
- _PK_png_options
- _PK_jpg_options
- widget_recent-comments
- _PK_500_setting
- _PK_js_options
- widget_theysaidso_widget
- _PK_400_setting
- _PK_301_new_setting
- _PK_301_old_setting
- _PK_css_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/simple-htaccess-redirects/parts/content-expired-headers.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/simple-htaccess-redirects/parts/content-scan-urls.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-htaccess-redirects/parts/content-404-captures.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-htaccess-redirects/parts/content-active-redirects.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/simple-htaccess-redirects/parts/content-redirect.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #3 in simple-htaccess-redirects/assets to your readme.txt
simple-htaccess-redirects/plugin.php 92% from 13 tests
The main file in "Simple Htaccess Redirects" v. 1.5.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-htaccess-redirects.php" instead of "plugin.php")
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
Good job! No executable or dangerous file extensions detected2,101 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 688 | 92 | 2,101 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 3 | 15.79% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin