100% devorion-related-post

Code Review | DevOrion Related Post

WordPress plugin DevOrion Related Post scored 100% from 54 tests.

About plugin

  • Plugin page: devorion-related-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 5.8.1
  • First release: Nov 15, 2018
  • Latest release: Nov 15, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: demirdoven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 368 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0440.75 ▲4.00
Dashboard /wp-admin3.09 ▲0.0451.41 ▲5.30
Posts /wp-admin/edit.php3.14 ▲0.0448.97 ▲2.20
Add New Post /wp-admin/post-new.php5.45 ▲0.0298.36 ▼563.82
Media Library /wp-admin/upload.php3.03 ▲0.0338.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.90 ▲0.3512.33 ▼0.1448.68 ▼6.87
Dashboard /wp-admin2,981 ▲446.14 ▲0.21142.10 ▼15.49117.45 ▼1.54
Posts /wp-admin/edit.php2,747 ▲82.72 ▲0.0172.86 ▼1.38101.09 ▲6.51
Add New Post /wp-admin/post-new.php1,775 ▲9218.32 ▼0.47403.16 ▲4.53168.52 ▲54.95
Media Library /wp-admin/upload.php1,815 ▲85.04 ▼0.00156.51 ▼4.54123.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:
LanguageFilesBlank linesComment linesLines of code
PHP12721172
CSS21067
PO File117634628
JavaScript1003

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 code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/screenshot-2.png84.28KB32.49KB▼ 61.45%