Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼146.67ms] Passed 4 tests
An overview of server-side resources used by WP Edit Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 34.30 ▼4.47 |
Dashboard /wp-admin | 3.07 ▲0.01 | 43.39 ▼7.50 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 37.81 ▼9.42 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.82 ▼565.27 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 37.78 ▲4.47 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP Edit Redirect: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.27 ▲0.85 | 7.59 ▼1.64 | 50.87 ▼1.94 |
Dashboard /wp-admin | 2,967 ▲33 | 5.92 ▼0.12 | 145.90 ▼9.55 | 125.73 ▲14.25 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 70.29 ▼0.56 | 100.69 ▲4.69 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.84 ▲0.08 | 380.20 ▼4.03 | 115.66 ▲2.85 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.01 | 169.41 ▲6.00 | 118.06 ▼0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-edit-redirect/wp-edit-redirect.php:36
- > 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 Passed 29 tests
readme.txt Passed 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
5 plugin tags: redirect, post, page, edit, admin
wp-edit-redirect/wp-edit-redirect.php Passed 13 tests
The entry point to "WP Edit Redirect" version 1.4 is a PHP file that has certain tags in its header comment area
130 characters long description:
Add "/wp-edit/" to the end of a page or post URL to redirect to the admin. Quick access to the backend to make changes on the fly!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected28 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 26 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin