94% hello-wapuu

Code Review | Hello Wapuu

WordPress plugin Hello Wapuu scored 94% from 54 tests.

About plugin

  • Plugin page: hello-wapuu
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.3.1
  • WordPress version: 5.8.1
  • First release: Aug 21, 2011
  • Latest release: Oct 16, 2015
  • Number of updates: 12
  • Update frequency: every 126.5 days
  • Top authors: khoshino (91.67%)mayukojpn (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,005 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼147.71ms] Passed 4 tests

This is a short check of server-side resources used by Hello Wapuu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1441.40 ▲19.70
Dashboard /wp-admin3.08 ▲0.0347.74 ▲2.57
Posts /wp-admin/edit.php3.13 ▲0.0242.22 ▼5.71
Add New Post /wp-admin/post-new.php5.44 ▲0.0090.33 ▼585.67
Media Library /wp-admin/upload.php3.02 ▲0.0232.18 ▼2.04

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Hello Wapuu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,858 ▲26215.95 ▲0.3010.40 ▲1.3129.64 ▼17.31
Dashboard /wp-admin3,116 ▲1825.94 ▼0.05142.72 ▼13.65178.80 ▲72.38
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0165.97 ▼2.7289.54 ▼10.47
Add New Post /wp-admin/post-new.php1,504 ▼11118.53 ▼2.94386.61 ▲98.45109.06 ▲4.91
Media Library /wp-admin/upload.php1,810 ▲35.05 ▲0.00154.67 ▲4.37112.05 ▼2.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-wapuu/hello-wapuu.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: admin, plugins, wapuu, event, widgets...

hello-wapuu/hello-wapuu.php Passed 13 tests

This is the main PHP file of "Hello Wapuu" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
Ja.wordpress.org official character "わぷー(Wapuu)" will tell you about your activity on a dashboard.

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
Everything looks great! No dangerous files found in this plugin161 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1334786
CSS10045
SVG10130

PHP code Passed 2 tests

A brief analysis 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.21
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%
Functions3
▷ Named functions3100.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
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png58.22KB25.42KB▼ 56.35%