10% t72-output-html

Code Review | Output HTML T72

WordPress plugin Output HTML T72 scored 10% from 54 tests.

About plugin

  • Plugin page: t72-output-html
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.2-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2014
  • Latest release: Jun 5, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: yg-products (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 552 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/t72-output-html/plugin.php+15
    require_once(t72/t72.php): failed to open stream: No such file or directory

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

A check of server-side resources used by Output HTML T72
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.23 ▼6.15
Dashboard /wp-admin3.31 ▲0.0047.89 ▼18.28
Posts /wp-admin/edit.php3.36 ▲0.0051.62 ▼7.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.88 ▼9.16
Media Library /wp-admin/upload.php3.23 ▲0.0037.01 ▼1.77

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Output HTML T72
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼0.614.07 ▲1.9640.52 ▼18.33
Dashboard /wp-admin2,203 ▲125.78 ▲0.92100.55 ▼43.9437.46 ▼19.12
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0634.93 ▼10.0432.03 ▼10.12
Add New Post /wp-admin/post-new.php1,542 ▲823.08 ▲0.05641.06 ▼50.3854.06 ▼7.80
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0597.93 ▼11.9643.30 ▼2.92

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/t72-output-html/inc_header.php
    • > /wp-content/plugins/t72-output-html/inc_footer.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(t72/t72.php): failed to open stream: No such file or directory in wp-content/plugins/t72-output-html/plugin.php on line 15
    • > PHP Fatal error
      require_once(): Failed opening required 't72/t72.php' (include_path='.:/usr/share/php') in wp-content/plugins/t72-output-html/plugin.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'T72OhConfig' not found in wp-content/plugins/t72-output-html/setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/t72-output-html/functions.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'T72OhConfig' not found in wp-content/plugins/t72-output-html/home.php:2

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === t72-output-html === )
The official readme.txt is a good inspiration

t72-output-html/plugin.php 92% from 13 tests

The main PHP file in "Output HTML T72" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("t72-output-html.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin303 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP63021239
CSS16064

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin