Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.88ms] Passed 4 tests
Analyzing server-side resources used by Related Posts for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 40.73 ▼0.37 |
Dashboard /wp-admin | 3.49 ▲0.14 | 50.23 ▼10.94 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.88 ▲1.06 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 89.43 ▼21.26 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.09 ▲3.11 |
RP4WPINSTALL /wp-admin/admin.php?page=rp4wp_install | 3.29 | 32.52 |
Link_Related_Screen /wp-admin/admin.php?page=rp4wp_link_related | 3.29 | 33.79 |
Related Posts /wp-admin/options-general.php?page=rp4wp | 3.32 | 33.73 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 111 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_rp4wp_cache |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
widget_rp4wp_related_posts_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Related Posts for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.47 ▲0.20 | 1.61 ▼0.31 | 42.64 ▼1.33 |
Dashboard /wp-admin | 2,196 ▲19 | 5.61 ▼0.05 | 96.02 ▲7.84 | 39.97 ▼4.71 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.01 | 39.55 ▼0.33 | 36.77 ▼2.45 |
Add New Post /wp-admin/post-new.php | 6,238 ▲4,704 | 26.11 ▲7.73 | 941.05 ▲291.08 | 38.47 ▼45.34 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.07 | 100.30 ▼0.56 | 47.65 ▼1.44 |
RP4WPINSTALL /wp-admin/admin.php?page=rp4wp_install | 680 | 1.60 | 15.50 | 18.91 |
Link_Related_Screen /wp-admin/admin.php?page=rp4wp_link_related | 711 | 1.51 | 7.00 | 13.19 |
Related Posts /wp-admin/options-general.php?page=rp4wp | 1,063 | 1.71 | 24.27 | 40.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_rp4wp_cache
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_rp4wp_related_posts_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: You are using too many tags: 22 tag instead of maximum 10
related-posts-for-wp/related-posts-for-wp.php Passed 13 tests
Analyzing the main PHP file in "Related Posts for WordPress" version 2.2.1
80 characters long description:
Related Posts for WordPress, the best way to display related posts in WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin7,076 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 1,413 | 1,566 | 3,564 |
PHP | 72 | 1,043 | 1,621 | 3,112 |
JavaScript | 6 | 56 | 29 | 188 |
Sass | 3 | 33 | 0 | 172 |
Markdown | 1 | 16 | 0 | 30 |
XML | 1 | 0 | 0 | 7 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 3 | 6.25% |
▷ Concrete classes | 45 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 36 | 18.27% |
▷ Public methods | 171 | 86.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 13.20% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 16 | |
▷ Global constants | 1 | 6.25% |
▷ Class constants | 15 | 93.75% |
▷ Public constants | 15 | 100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/never5-logo.png | 9.76KB | 3.69KB | ▼ 62.20% |
assets/images/grabber.png | 0.95KB | 0.13KB | ▼ 86.45% |