83% expert-html-section

Code Review | Expert HTML Section

WordPress plugin Expert HTML Section scored83%from 54 tests.

About plugin

  • Plugin page: expert-html-section
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jun 30, 2020
  • Latest release: Jun 30, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: expertoftech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /325 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.09ms] Passed 4 tests

Server-side resources used by Expert HTML Section
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.80 ▼3.03
Dashboard /wp-admin3.35 ▲0.0449.76 ▼2.53
Posts /wp-admin/edit.php3.40 ▲0.0453.81 ▲1.91
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.87 ▼3.84
Media Library /wp-admin/upload.php3.27 ▲0.0436.73 ▼2.94
Add New /wp-admin/post-new.php?post_type=expert_html_section3.3648.66
All Items /wp-admin/edit.php?post_type=expert_html_section3.3147.56

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Expert HTML Section
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3314.35 ▼0.291.81 ▼0.3045.25 ▲3.46
Dashboard /wp-admin2,222 ▲455.62 ▲0.0179.83 ▼26.7439.00 ▼4.34
Posts /wp-admin/edit.php2,127 ▲271.98 ▼0.0243.04 ▲6.3136.50 ▲1.21
Add New Post /wp-admin/post-new.php1,549 ▲2323.09 ▼0.44630.24 ▼72.6653.84 ▼7.52
Media Library /wp-admin/upload.php1,427 ▲244.21 ▲0.0199.78 ▼6.3143.36 ▼3.44
Add New /wp-admin/post-new.php?post_type=expert_html_section2,1627.69168.8363.32
All Items /wp-admin/edit.php?post_type=expert_html_section1,0991.9029.5730.67

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/expert-html-section/expert-html-section.php:27

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 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: No tags were detected
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === expert-html-section === )
  • Contributors: Contributors not specified
You can look at the official readme.txt

expert-html-section/expert-html-section.php 92% from 13 tests

"Expert HTML Section" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1481799

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin