78% eazy-html5-elements

Code Review | Eazy HTML5 Elements

WordPress plugin Eazy HTML5 Elements scored78%from 54 tests.

About plugin

  • Plugin page: eazy-html5-elements
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2016
  • Latest release: Jan 2, 2018
  • Number of updates: 6
  • Update frequency: every 121.2 days
  • Top authors: r0bsc0tt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,417 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.36ms] Passed 4 tests

Server-side resources used by Eazy HTML5 Elements
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.63 ▼5.35
Dashboard /wp-admin3.31 ▲0.0043.55 ▼3.06
Posts /wp-admin/edit.php3.36 ▲0.0047.55 ▲5.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.81 ▼16.15
Media Library /wp-admin/upload.php3.23 ▲0.0034.50 ▼0.88

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Eazy HTML5 Elements
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.62 ▼0.745.00 ▲3.3048.64 ▲2.84
Dashboard /wp-admin2,206 ▲185.91 ▲1.02107.82 ▼3.4242.52 ▼2.02
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.33 ▼0.2138.27 ▼1.93
Add New Post /wp-admin/post-new.php1,542 ▲1318.59 ▲0.27595.92 ▼77.0455.97 ▼0.83
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0399.98 ▲0.2240.92 ▼0.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/eazy-html5-elements/eazy_html5_elements_html.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/eazy-html5-elements/eazy_html5_elements_html.php:89

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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
6 plugin tags: layout, css, html5, html, theme development...

eazy-html5-elements/eazy_html5_elements.php 92% from 13 tests

The main file in "Eazy HTML5 Elements" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("eazy-html5-elements.php" instead of "eazy_html5_elements.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected564 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21812540
CSS10017
JavaScript1007

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin