67% rdp-wiki-embed

Code Review | RDP Wiki Embed

WordPress plugin RDP Wiki Embed scored67%from 54 tests.

About plugin

  • Plugin page: rdp-wiki-embed
  • Plugin version: 1.2.19
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2016
  • Latest release: Nov 11, 2021
  • Number of updates: 93
  • Update frequency: every 22.0 days
  • Top authors: rpayne7264 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

700+ active /15,500 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.51MB] [CPU: ▼5.67ms] Passed 4 tests

A check of server-side resources used by RDP Wiki Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4841.68 ▼0.37
Dashboard /wp-admin3.88 ▲0.5355.55 ▼9.97
Posts /wp-admin/edit.php3.93 ▲0.5752.07 ▲2.34
Add New Post /wp-admin/post-new.php6.39 ▲0.5195.96 ▼14.67
Media Library /wp-admin/upload.php3.74 ▲0.5144.76 ▲8.81
RDP Wiki /wp-admin/options-general.php?page=rdp-wiki-embed3.7337.82

Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/rdp-wiki-embed/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 79 new files
Database: 1 new table, 6 new options
New tables
wp_rdp_wiki_embed
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by RDP Wiki Embed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲17114.13 ▼0.294.67 ▲2.7643.27 ▲1.68
Dashboard /wp-admin2,236 ▲335.05 ▲0.15107.87 ▲3.2342.62 ▼3.04
Posts /wp-admin/edit.php2,117 ▲142.11 ▲0.0737.25 ▼3.7232.87 ▼4.14
Add New Post /wp-admin/post-new.php1,637 ▲11123.23 ▲5.65695.47 ▲34.5068.27 ▲9.57
Media Library /wp-admin/upload.php1,414 ▲114.39 ▲0.16117.81 ▲19.9346.19 ▲3.46
RDP Wiki /wp-admin/options-general.php?page=rdp-wiki-embed1,0081.8025.9630.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_rdp_wiki_embed
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/rdp-wiki-embed/bl/rdpWEUtilities.php
    • > /wp-content/plugins/rdp-wiki-embed/pl/rdpWEAdminMenu.php
    • > /wp-content/plugins/rdp-wiki-embed/pl/rdpWE.php
    • > /wp-content/plugins/rdp-wiki-embed/bl/simple_html_dom.php
    • > /wp-content/plugins/rdp-wiki-embed/bl/rdpWEContent.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=rdp-wiki-embed
    • > Deprecation (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Settings page), #2 (Media button to launch shortcode embed helper form), #3 (Shortcode embed helper form)
  • Plugin Name: Please specify the plugin name on the first line ( === rdp-wiki-embed === )
The official readme.txt is a good inspiration

rdp-wiki-embed/index.php 92% from 13 tests

The entry point to "RDP Wiki Embed" version 1.2.19 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rdp-wiki-embed.php" instead of "index.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
Success! There were no dangerous files found in this plugin6,995 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
CSS86431704,045
PHP75044202,770
JavaScript5296149
SVG120031

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity76.75
▷ Minimum class complexity10.00
▷ Maximum class complexity198.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods156
▷ Static methods4629.49%
▷ Public methods12982.69%
▷ Protected methods1610.26%
▷ Private methods117.05%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants26100.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
42 compressed PNG files occupy 0.29MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
pl/css/images/search-fade.png0.09KB0.14KB0.00%
pl/css/images/Monobook-bullet-star.png0.27KB0.21KB▼ 22.06%
pl/css/images/icon.png0.46KB0.61KB0.00%
pl/css/images/border1.png0.61KB0.82KB0.00%
pl/css/images/bullet-icon.png0.10KB0.10KB0.00%