84% wp-tinyforum-widget

Code Review | WP tinyForum Widget

WordPress plugin WP tinyForum Widget scored84%from 54 tests.

About plugin

  • Plugin page: wp-tinyforum-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Dec 28, 2012
  • Latest release: Dec 31, 2012
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: parkerj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.61ms] Passed 4 tests

An overview of server-side resources used by WP tinyForum Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.78 ▼10.16
Dashboard /wp-admin3.33 ▲0.0344.54 ▲0.03
Posts /wp-admin/edit.php3.38 ▲0.0345.33 ▼3.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.88 ▼6.97
Media Library /wp-admin/upload.php3.26 ▲0.0332.06 ▼1.70
WP tinyForum Widget /wp-admin/options-general.php?page=wp-tinyForum-widget-settings3.2231.67

Server storage [IO: ▲0.08MB] [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
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WP tinyForum Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▼0.271.65 ▼0.3040.89 ▼1.36
Dashboard /wp-admin2,210 ▲254.85 ▼1.02110.86 ▲6.7242.73 ▼0.84
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0040.22 ▼2.2134.62 ▼0.44
Add New Post /wp-admin/post-new.php1,546 ▲918.41 ▲0.05597.44 ▼11.7553.02 ▲0.25
Media Library /wp-admin/upload.php1,392 ▲74.21 ▲0.0595.96 ▼3.2741.15 ▼3.24
WP tinyForum Widget /wp-admin/options-general.php?page=wp-tinyForum-widget-settings8662.1723.8226.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tinyforum-widget/wp_tinyForum_widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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:
  • Screenshots: Add images for these screenshots: #1 (Widget Settings Page), #2 (Display of widget in sidebar)
The official readme.txt might help

wp-tinyforum-widget/wp_tinyForum_widget.php 92% from 13 tests

"WP tinyForum Widget" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-tinyforum-widget.php" instead of "wp_tinyForum_widget.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
Good job! No executable or dangerous file extensions detected141 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12413107
PO File1111034

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.07
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%
Functions6
▷ Named functions6100.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
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/topic.png0.40KB0.43KB0.00%
screenshot-2.png21.08KB4.94KB▼ 76.55%
screenshot-1.png47.20KB12.50KB▼ 73.51%