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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.95ms] Passed 4 tests
Analyzing server-side resources used by ETH Simple Shortlinks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.76 ▼1.65 |
Dashboard /wp-admin | 3.35 ▲0.01 | 52.28 ▼12.00 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.94 ▼3.25 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 94.47 ▲0.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.04 ▼2.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ETH Simple Shortlinks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.56 ▼0.66 | 1.78 ▼0.21 | 44.72 ▼2.77 |
Dashboard /wp-admin | 2,235 ▲32 | 4.90 ▼0.95 | 105.57 ▲3.44 | 39.02 ▼0.74 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.03 ▲0.05 | 41.02 ▼1.62 | 34.92 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,565 ▲17 | 18.20 ▼4.91 | 624.24 ▼38.19 | 57.41 ▲5.18 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.24 ▲0.00 | 97.58 ▼3.29 | 44.70 ▲0.06 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 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-simple-shortlinks/inc/class-eth-simple-shortlinks.php:124
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eth-simple-shortlinks/inc/class-eth-simple-shortlinks.php:124
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
2 plugin tags: shortlinks, shortlink
eth-simple-shortlinks/eth-simple-shortlinks.php Passed 13 tests
"ETH Simple Shortlinks" version 0.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
40 characters long description:
Simple non-GET shortlinks using post IDs
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
Everything looks great! No dangerous files found in this plugin210 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 70 | 244 | 210 |
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.35 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected