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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.87ms] Passed 4 tests
This is a short check of server-side resources used by Amazing Related Post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.89 ▼0.28 |
Dashboard /wp-admin | 3.36 ▲0.05 | 51.13 ▲3.75 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.82 ▲2.03 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.71 ▼8.55 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.18 ▲3.30 |
Server storage [IO: ▲2.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Amazing Related Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.48 ▲0.10 | 1.77 ▲0.14 | 42.28 ▲1.15 |
Dashboard /wp-admin | 2,222 ▲34 | 5.79 ▼0.02 | 100.64 ▼1.84 | 38.45 ▼6.15 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.16 ▲0.10 | 35.31 ▲3.14 | 33.00 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,527 ▲10 | 17.68 ▲0.06 | 646.07 ▼19.20 | 55.12 ▲1.77 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.21 ▼0.05 | 91.56 ▼4.82 | 43.33 ▲0.13 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
4 plugin tags: category, post, post type, related post
amazing-related-post/index.php 85% from 13 tests
The main PHP file in "Amazing Related Post" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("amazing-related-post.php" instead of "index.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 detected548 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 43 | 23 | 280 |
CSS | 2 | 20 | 6 | 139 |
Sass | 1 | 3 | 3 | 115 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.88 |
▷ 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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 1.38MB with 0.96MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 87.64KB | 29.30KB | ▼ 66.56% |
assets/banner-1544x500.png | 226.78KB | 80.32KB | ▼ 64.58% |
assets/screenshot-2.png | 394.91KB | 96.38KB | ▼ 75.60% |
assets/screenshot-3.PNG | 143.23KB | 39.75KB | ▼ 72.24% |
assets/screenshot-1.png | 229.62KB | 69.56KB | ▼ 69.71% |