84% add-widget-after-content

Code Review | Add Widget After Content

WordPress plugin Add Widget After Content scored84%from 54 tests.

About plugin

  • Plugin page: add-widget-after-...
  • Plugin version: 2.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Nov 30, 2023
  • Number of updates: 70
  • Update frequency: every 49.1 days
  • Top authors: apintop (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

10,000+ active /113,766 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.48ms] Passed 4 tests

Server-side resources used by Add Widget After Content
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.44 ▼1.37
Dashboard /wp-admin3.39 ▲0.0846.53 ▼0.44
Posts /wp-admin/edit.php3.50 ▲0.1446.48 ▼5.63
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.97 ▼6.49
Media Library /wp-admin/upload.php3.31 ▲0.0837.08 ▲3.93
Widget After Content /wp-admin/themes.php?page=awac-options3.4336.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
awac_extensions
awac_priority
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Add Widget After Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.72 ▲0.321.72 ▼0.1144.08 ▼0.39
Dashboard /wp-admin2,199 ▲255.61 ▼0.0193.06 ▼3.0940.48 ▼2.94
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0037.11 ▼3.2834.68 ▼1.74
Add New Post /wp-admin/post-new.php6,225 ▲4,69625.74 ▲2.53871.07 ▲221.1852.19 ▲1.28
Media Library /wp-admin/upload.php1,398 ▼54.16 ▼0.0997.42 ▼1.5341.01 ▼1.14
Widget After Content /wp-admin/themes.php?page=awac-options9681.9724.6727.58

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

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
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/add-widget-after-content/partials/awac-options-display.php:17

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 96% from 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
2 plugin tags: widget, posts

add-widget-after-content/add-widget-after-content.php 92% from 13 tests

The principal PHP file in "Add Widget After Content" v. 2.4.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,289 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP64214411,020
PO File39096269

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity53.00
▷ Minimum class complexity13.00
▷ Maximum class complexity92.00
Average method complexity5.16
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods50
▷ Static methods36.00%
▷ Public methods4488.00%
▷ Protected methods00.00%
▷ Private methods612.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/awac-styles.png15.40KB6.47KB▼ 58.01%
images/awac-controls.png12.12KB5.13KB▼ 57.70%
images/awac-comments.png8.40KB3.81KB▼ 54.68%
images/awac-plus.png11.10KB5.22KB▼ 52.96%