84% my-html-post-widgets

Code Review | Below Post Title and Below Post Content Ads

WordPress plugin Below Post Title and Below Post Content Ads scored84%from 54 tests.

About plugin

  • Plugin page: my-html-post-widgets
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Jan 26, 2016
  • Latest release: Jun 1, 2020
  • Number of updates: 42
  • Update frequency: every 37.8 days
  • Top authors: worldfacts (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /6,481 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Below Post Title and Below Post Content Ads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.14 ▼1.48
Dashboard /wp-admin3.32 ▼0.0354.76 ▼13.39
Posts /wp-admin/edit.php3.37 ▲0.0145.16 ▼6.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.09 ▼21.03
Media Library /wp-admin/upload.php3.24 ▲0.0138.82 ▼1.26
Post Widget Settings /wp-admin/options-general.php?page=my-html-post-Widgets3.2132.96

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Below Post Title and Below Post Content Ads
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6013.36 ▼1.231.77 ▼0.3643.49 ▼0.67
Dashboard /wp-admin2,222 ▲165.86 ▲0.95102.84 ▼9.2339.87 ▼3.09
Posts /wp-admin/edit.php2,104 ▲42.06 ▲0.0534.27 ▼1.5732.53 ▼0.48
Add New Post /wp-admin/post-new.php1,529 ▼217.77 ▼5.58671.55 ▼27.8659.33 ▲4.89
Media Library /wp-admin/upload.php1,404 ▲74.23 ▼0.06113.36 ▼3.8846.88 ▼1.08
Post Widget Settings /wp-admin/options-general.php?page=my-html-post-Widgets8102.0121.9629.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/my-html-post-widgets/my-html-post-widgets.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: ads, posts, below post title, google adsense, html widget box...

my-html-post-widgets/my-html-post-widgets.php Passed 13 tests

The primary PHP file in "Below Post Title and Below Post Content Ads" version 1.9 is used by WordPress to initiate all plugin functionality
98 characters long description:
Simple Plugin for insert your HTML Widgets and Ads on the Below Post Title and Below Post content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1222373
CSS1131

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 are no PNG files in this plugin