83% post6widgetarea

Code Review | Post6WidgetArea

WordPress plugin Post6WidgetArea scored83%from 54 tests.

About plugin

  • Plugin page: post6widgetarea
  • Plugin version: 0.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Oct 2, 2013
  • Number of updates: 22
  • Update frequency: every 8.1 days
  • Top authors: enomoto celtislab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,687 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.02MB] [CPU: ▼4.50ms] Passed 4 tests

A check of server-side resources used by Post6WidgetArea
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.57 ▼0.30
Dashboard /wp-admin3.33 ▲0.0346.36 ▼6.70
Posts /wp-admin/edit.php3.38 ▲0.0349.14 ▼0.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.91 ▼10.40
Media Library /wp-admin/upload.php3.25 ▲0.0235.83 ▲3.38
Post 6 WidgetArea /wp-admin/options-general.php?page=post6widgetarea/post6widget_area.php3.2333.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_post6text_widget
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Post6WidgetArea
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.23 ▼1.194.48 ▲2.5044.59 ▲0.18
Dashboard /wp-admin2,209 ▲204.84 ▼0.12111.42 ▼10.9342.46 ▼1.09
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0738.63 ▲2.6135.29 ▼1.17
Add New Post /wp-admin/post-new.php1,542 ▲2818.51 ▲0.64625.11 ▼75.1150.10 ▼2.22
Media Library /wp-admin/upload.php1,394 ▲34.23 ▼0.0194.12 ▼6.7940.77 ▼1.43
Post 6 WidgetArea /wp-admin/options-general.php?page=post6widgetarea/post6widget_area.php9272.0222.5728.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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_post6text_widget
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Even though everything seems fine, this is not an exhaustive test

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post6widgetarea/post6text_widget.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/post6widgetarea/post6text_widget.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)
No browser issues were found

Optimizations

Plugin configuration 90% from 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
4 plugin tags: widget, dynamic_sidebar, widget-area, category

post6widgetarea/post6widget_area.php 77% from 13 tests

This is the main PHP file of "Post6WidgetArea" version 0.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("post6widgetarea.php" instead of "post6widget_area.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 239 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
Good job! No executable or dangerous file extensions detected829 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP376104602
PO File16072181
CSS114946

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity36.67
▷ Minimum class complexity26.00
▷ Maximum class complexity57.00
Average method complexity4.96
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods1244.44%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
4 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png49.11KB37.72KB▼ 23.20%
screenshot-2.png27.39KB22.05KB▼ 19.51%
screenshot-4.png5.62KB4.34KB▼ 22.76%
screenshot-3.png9.12KB7.12KB▼ 21.98%