94% lh-dequeue-rtmedia

Code Review | LH Dequeue RtMedia

WordPress plugin LH Dequeue RtMedia scored 94% from 54 tests.

About plugin

  • Plugin page: lh-dequeue-rtmedia
  • Plugin version: 1.03
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 5.9.2
  • First release: Nov 13, 2017
  • Latest release: Jun 16, 2019
  • Number of updates: 4
  • Update frequency: every 145.2 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 665 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼316.62ms] Passed 4 tests

Server-side resources used by LH Dequeue RtMedia
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0450.38 ▼1.76
Dashboard /wp-admin3.41 ▲0.0131.36 ▼2.02
Posts /wp-admin/edit.php3.65 ▲0.0136.74 ▼2.43
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.51 ▼1,260.27
Media Library /wp-admin/upload.php3.30 ▲0.0026.73 ▲3.28
RTMedia /wp-admin/options-general.php?page=rtmedia-settings3.1818.71

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

LH Dequeue RtMedia: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲7815.82 ▲0.045.57 ▼0.692.98 ▲0.53
Dashboard /wp-admin2,907 ▲496.09 ▼0.02127.09 ▼6.60189.81 ▲26.74
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0163.94 ▲2.22138.82 ▼6.38
Add New Post /wp-admin/post-new.php1,761 ▲12221.32 ▼0.07438.15 ▲13.23183.09 ▲33.78
Media Library /wp-admin/upload.php1,703 ▲55.51 ▼0.01163.37 ▲26.39257.43 ▲65.92
RTMedia /wp-admin/options-general.php?page=rtmedia-settings280.940.0416.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=rtmedia-settings
    • > Network (severe)
    wp-admin/options-general.php?page=rtmedia-settings - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: style, rtmedia, dequeue, buddypress, script

lh-dequeue-rtmedia/lh-dequeu-rtmedia.php 92% from 13 tests

The main PHP script in "LH Dequeue RtMedia" version 1.03 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lh-dequeue-rtmedia.php" instead of "lh-dequeu-rtmedia.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111114109

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected