Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.55ms] Passed 4 tests
Server-side resources used by randomPost
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.31 ▼2.10 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.68 ▼3.18 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.18 ▼1.56 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.02 ▲2.31 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.93 ▼3.35 |
randomPost Settings /wp-admin/options-general.php?page=rp-settings | 3.25 | 31.58 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
rp_javascript_hotkey |
rp_version |
rp_slug_option_previous |
rp_hotkey_enabled |
rp_slug_option |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by randomPost
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 13.22 ▼1.09 | 1.81 ▼0.39 | 36.88 ▼12.57 |
Dashboard /wp-admin | 2,212 ▲24 | 5.81 ▼0.09 | 104.40 ▼12.02 | 40.15 ▼3.43 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.03 | 40.12 ▲4.30 | 36.31 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.32 ▼5.12 | 600.44 ▼80.18 | 48.21 ▼5.45 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.08 | 93.69 ▼9.33 | 41.45 ▼4.71 |
randomPost Settings /wp-admin/options-general.php?page=rp-settings | 918 | 2.01 | 22.83 | 30.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- rp_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/randompost/randompost.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
randompost/randompost.php Passed 13 tests
The main file in "randomPost" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
137 characters long description:
Easily create a custom URL to redirect visitors to view random posts. Keyboard hotkey shortcuts also available for browsing random posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin270 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 56 | 27 | 226 |
CSS | 1 | 3 | 0 | 44 |
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.15 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 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 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/OBrienLabs-Logo-h75px.png | 12.21KB | 4.67KB | ▼ 61.79% |