90% wp-html-class

Code Review | Wp Html Class

WordPress plugin Wp Html Class scored 90% from 54 tests.

About plugin

  • Plugin page: wp-html-class
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 22, 2015
  • Latest release: Apr 22, 2015
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: MaickonRabgel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.54ms] Passed 4 tests

This is a short check of server-side resources used by Wp Html Class
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.40 ▼1.83
Dashboard /wp-admin3.31 ▲0.0148.73 ▲0.94
Posts /wp-admin/edit.php3.37 ▲0.0145.67 ▼1.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.93 ▼17.82
Media Library /wp-admin/upload.php3.24 ▲0.0135.23 ▼0.75

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Wp Html Class
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.78 ▲0.401.71 ▼0.0643.24 ▲0.60
Dashboard /wp-admin2,206 ▲185.90 ▼0.00107.31 ▲2.4536.20 ▼6.31
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0534.92 ▼1.5531.03 ▼3.73
Add New Post /wp-admin/post-new.php1,544 ▲1418.24 ▼0.26629.95 ▼28.3156.23 ▼0.13
Media Library /wp-admin/upload.php1,382 ▼94.22 ▲0.0493.45 ▼9.0740.91 ▼4.00

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

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

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: html, php, tag

wp-html-class/wp-html-class.php Passed 13 tests

The main PHP file in "Wp Html Class" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Este plugin permite que o programador utilize código PHP no lugar de HTML.

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
No dangerous file extensions were detected107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown126067
PHP192740

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.94
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin