84% pz-directhtml

Code Review | Pz-DirectHTML

WordPress plugin Pz-DirectHTML scored84%from 54 tests.

About plugin

  • Plugin page: pz-directhtml
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jan 20, 2017
  • Latest release: Jan 20, 2017
  • Number of updates: 4
  • Update frequency: every 42.0 days
  • Top authors: poporon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Pz-DirectHTML
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.85 ▼4.40
Dashboard /wp-admin3.31 ▲0.0147.58 ▼4.56
Posts /wp-admin/edit.php3.37 ▲0.0046.11 ▲2.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0092.64 ▼9.16
Media Library /wp-admin/upload.php3.24 ▲0.0034.22 ▲0.95

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Pz-DirectHTML
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.151.70 ▼0.0539.75 ▼4.82
Dashboard /wp-admin2,192 ▲115.53 ▼0.1983.13 ▼20.0738.63 ▼2.06
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0139.92 ▼1.4737.14 ▼0.33
Add New Post /wp-admin/post-new.php1,525 ▼1221.08 ▲2.73599.98 ▼36.8644.91 ▼23.51
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.08103.43 ▲10.2247.67 ▲6.12

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
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pz-directhtml/pz-directhtml.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: html, text

pz-directhtml/pz-directhtml.php Passed 13 tests

The main PHP file in "Pz-DirectHTML" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
ビジュアルエディタだってHTMLしたい

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
Good job! No executable or dangerous file extensions detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10812

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin