Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.57ms] Passed 4 tests
Analyzing server-side resources used by ETH Redirect to Latest Post
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.74 ▼0.25 |
Dashboard /wp-admin | 3.33 ▼0.01 | 47.64 ▼8.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.53 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 81.11 ▼10.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.88 ▲0.85 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for ETH Redirect to Latest Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲54 | 14.35 ▼0.00 | 1.60 ▼0.04 | 41.09 ▼6.33 |
Dashboard /wp-admin | 2,192 ▲15 | 5.61 ▲0.06 | 84.74 ▼4.81 | 40.25 ▼0.50 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 34.83 ▼0.33 | 35.69 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.61 ▲0.05 | 659.78 ▼33.98 | 55.52 ▲3.74 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▼0.03 | 94.37 ▼13.09 | 42.51 ▼3.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eth-redirect-to-latest-post/inc/class-eth-redirect-to-latest-post.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eth-redirect-to-latest-post/inc/class-eth-redirect-to-latest-post.php:84
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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: latest, redirect latest, redirect, latest post, redirect post
eth-redirect-to-latest-post/eth-redirect-to-latest.php 92% from 13 tests
The entry point to "ETH Redirect to Latest Post" version 0.3.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("eth-redirect-to-latest-post.php" instead of "eth-redirect-to-latest.php")
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
Good job! No executable or dangerous file extensions detected129 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 141 | 129 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected