93% add-html-to-pages

Code Review | Plugin URI: http://www.itchimes.com/wp-plugins/add-html-to-pages.zip

WordPress plugin Plugin URI: http://www.itchimes.com/wp-plugins/add-html-to-pages.zipscored 93% from 54 tests.

About plugin

  • Plugin page: add-html-to-pages
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.8.0
  • WordPress version: 5.9.2
  • First release: Feb 20, 2014
  • Latest release: Feb 20, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: webdesigner.dinesh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active / 6,528 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼299.38ms] Passed 4 tests

Analyzing server-side resources used by Plugin URI: http://www.itchimes.com/wp-plugins/add-html-to-pages.zip
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.73 ▲5.08
Dashboard /wp-admin3.42 ▲0.0133.31 ▼2.04
Posts /wp-admin/edit.php3.65 ▲0.0135.01 ▼5.20
Add New Post /wp-admin/post-new.php6.89 ▼0.0889.18 ▼1,189.72
Media Library /wp-admin/upload.php3.30 ▲0.0125.06 ▼0.54

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Plugin URI: http://www.itchimes.com/wp-plugins/add-html-to-pages.zip
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7316.01 ▲0.016.12 ▲0.602.78 ▲0.61
Dashboard /wp-admin2,895 ▲346.16 ▼0.08115.04 ▼16.29156.17 ▲0.49
Posts /wp-admin/edit.php2,694 ▼03.35 ▲0.2962.72 ▼1.50141.31 ▼1.95
Add New Post /wp-admin/post-new.php1,758 ▲4722.04 ▲1.25439.45 ▼3.12159.43 ▲4.14
Media Library /wp-admin/upload.php1,695 ▼65.53 ▲0.02142.95 ▼2.05186.59 ▲1.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% 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)
Even though no errors were found, 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
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/add-html-to-pages/html-on-pages.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === Plugin URI: http://www.itchimes.com/wp-plugins/add-html-to-pages.zip=== )
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

add-html-to-pages/html-on-pages.php 92% from 13 tests

"Plugin URI: http://www.itchimes.com/wp-plugins/add-html-to-pages.zip" 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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-html-to-pages.php" instead of "html-on-pages.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14934

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin