Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼138.29ms] Passed 4 tests
Server-side resources used by DevOrion Related Post
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 40.75 ▲4.00 |
Dashboard /wp-admin | 3.09 ▲0.04 | 51.41 ▲5.30 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 48.97 ▲2.20 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 98.36 ▼563.82 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 38.04 ▲4.46 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for DevOrion Related Post
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.90 ▲0.35 | 12.33 ▼0.14 | 48.68 ▼6.87 |
Dashboard /wp-admin | 2,981 ▲44 | 6.14 ▲0.21 | 142.10 ▼15.49 | 117.45 ▼1.54 |
Posts /wp-admin/edit.php | 2,747 ▲8 | 2.72 ▲0.01 | 72.86 ▼1.38 | 101.09 ▲6.51 |
Add New Post /wp-admin/post-new.php | 1,775 ▲92 | 18.32 ▼0.47 | 403.16 ▲4.53 | 168.52 ▲54.95 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.04 ▼0.00 | 156.51 ▼4.54 | 123.41 ▼12.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: related post, inline related post
devorion-related-post/devorion-related-post.php Passed 13 tests
The entry point to "DevOrion Related Post" version 1.0 is a PHP file that has certain tags in its header comment area
112 characters long description:
The plugin that allows editors to add a related post of a post on the post edit page and display it on frontend.
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
No dangerous file extensions were detected270 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 21 | 172 |
CSS | 2 | 1 | 0 | 67 |
PO File | 1 | 176 | 346 | 28 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot-2.png | 84.28KB | 32.49KB | ▼ 61.45% |