Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼9.40ms] Passed 4 tests
Analyzing server-side resources used by Last Post Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.75 ▲0.66 |
Dashboard /wp-admin | 3.32 ▼0.03 | 55.55 ▼13.37 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.45 ▼3.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.05 ▼21.56 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.99 ▲0.91 |
Last Post Redirect /wp-admin/options-general.php?page=last-post-redirect-options | 3.21 | 34.50 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
last_post_redirect_get_name |
widget_theysaidso_widget |
can_compress_scripts |
last_post_redirect_post_type |
widget_recent-comments |
last_post_redirect_post_status |
last_post_redirect_way |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Last Post Redirect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲22 | 14.35 ▼0.04 | 1.70 ▼0.65 | 43.42 ▼1.28 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.03 | 92.11 ▼6.96 | 40.95 ▼2.34 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.05 | 34.11 ▼0.86 | 32.79 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,531 ▼19 | 23.18 ▲5.03 | 674.08 ▲22.81 | 57.83 ▼15.77 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.15 ▼0.03 | 96.82 ▼9.07 | 43.91 ▼0.38 |
Last Post Redirect /wp-admin/options-general.php?page=last-post-redirect-options | 905 | 2.03 | 22.87 | 30.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 10 options in the database
- db_upgraded
- last_post_redirect_get_name
- theysaidso_admin_options
- last_post_redirect_post_type
- widget_recent-posts
- last_post_redirect_way
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- last_post_redirect_post_status
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/last-post-redirect/last-post-redirect.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/last-post-redirect/options.php:12
- > 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 issues were found
Optimizations
Plugin configuration Passed 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
2 plugin tags: post, redirect
last-post-redirect/last-post-redirect.php Passed 13 tests
The main file in "Last Post Redirect" v. 1.5.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Redirect you to the latest post of your blog by a direct link.
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
Good job! No executable or dangerous file extensions detected244 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 25 | 131 |
PO File | 2 | 38 | 38 | 113 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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