10% wp-wapuu-widget

Code Review | WP Wapuu Widget

WordPress plugin WP Wapuu Widget scored10%from 54 tests.

About plugin

  • Plugin page: wp-wapuu-widget
  • Plugin version: 0.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.2.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2011
  • Latest release: Sep 2, 2011
  • Number of updates: 58
  • Update frequency: every 2.2 days
  • Top authors: redcocker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,765 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-wapuu-widget/wp-wapuu-widget.php+202
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.76ms] Passed 4 tests

An overview of server-side resources used by WP Wapuu Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.25 ▼35.88
Dashboard /wp-admin2.05 ▼1.267.45 ▼42.57
Posts /wp-admin/edit.php2.05 ▼1.315.83 ▼41.53
Add New Post /wp-admin/post-new.php2.05 ▼3.845.74 ▼87.06
Media Library /wp-admin/upload.php2.05 ▼1.186.41 ▼27.15

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Wapuu Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.34 ▼1.031.57 ▼0.6040.87 ▼9.66
Dashboard /wp-admin2,200 ▲145.79 ▲0.81119.29 ▲7.0442.43 ▼1.15
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0140.27 ▲4.5934.39 ▲2.94
Add New Post /wp-admin/post-new.php1,514 ▼1917.82 ▼5.44655.45 ▼12.1852.92 ▼3.43
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.00101.60 ▲4.5644.42 ▲1.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-wapuu-widget/wp-wapuu-widget.php+202
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-wapuu-widget/wp-wapuu-widget.php:37

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (This is the official character of WordPress Japanese local site.)
The official readme.txt might help

wp-wapuu-widget/wp-wapuu-widget.php 92% from 13 tests

The entry point to "WP Wapuu Widget" version 0.4.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected174 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23838133
PO File1131441

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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%
Functions0
▷ Named functions00.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
6 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wapuu_380.png44.80KB19.34KB▼ 56.83%
wapuu_175.png29.89KB8.19KB▼ 72.61%
wapuu_125.png20.38KB5.96KB▼ 70.79%
wapuu_150.png25.29KB7.31KB▼ 71.11%
screenshot-1.png28.98KB10.36KB▼ 64.26%