84% edithtmldom

Code Review | edithtmldom

WordPress plugin edithtmldom scored84%from 54 tests.

About plugin

  • Plugin page: edithtmldom
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Feb 1, 2013
  • Latest release: Sep 5, 2014
  • Number of updates: 8
  • Update frequency: every 72.6 days
  • Top authors: ulmdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼8.56ms] Passed 4 tests

This is a short check of server-side resources used by edithtmldom
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2338.01 ▼5.34
Dashboard /wp-admin3.61 ▲0.3047.64 ▼7.06
Posts /wp-admin/edit.php3.66 ▲0.3050.93 ▼3.37
Add New Post /wp-admin/post-new.php6.13 ▲0.2485.72 ▼18.45
Media Library /wp-admin/upload.php3.47 ▲0.2436.74 ▲0.56

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options
eHTML_input_tag
db_upgraded
can_compress_scripts
widget_theysaidso_widget
eHTML_input_url
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
eHTML_input_replace

Browser metrics Passed 4 tests

An overview of browser requirements for edithtmldom
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.34 ▲0.051.79 ▲0.0944.13 ▲1.28
Dashboard /wp-admin2,214 ▲405.62 ▼0.03103.92 ▲5.9849.41 ▲3.64
Posts /wp-admin/edit.php2,116 ▲132.00 ▼0.0336.47 ▼5.8933.46 ▼1.02
Add New Post /wp-admin/post-new.php1,539 ▲1323.08 ▼0.02679.83 ▼11.0166.75 ▲3.43
Media Library /wp-admin/upload.php1,413 ▲134.20 ▲0.0398.02 ▼3.2144.26 ▼3.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • eHTML_input_url
    • eHTML_input_replace
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • eHTML_input_tag

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/edithtmldom/edithtmldom.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: edit your social page, edit new class, replace tag html, modify content, control structure html...

edithtmldom/edithtmldom.php Passed 13 tests

The principal PHP file in "edithtmldom" v. 1.0 is loaded by WordPress automatically on each request
65 characters long description:
Get DOM url or file and remove or replace contents in few minutes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,331 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22082831,331

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity163.50
▷ Minimum class complexity130.00
▷ Maximum class complexity197.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected