94% hello-claudia

Code Review | Hello Claudia

WordPress plugin Hello Claudia scored 94% from 54 tests.

About plugin

  • Plugin page: hello-claudia
  • Plugin version: 0.4.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.3
  • WordPress version: 5.9.2
  • First release: Oct 11, 2011
  • Latest release: Dec 13, 2011
  • Number of updates: 13
  • Update frequency: every 5.5 days
  • Top authors: wokamoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,501 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼309.12ms] Passed 4 tests

An overview of server-side resources used by Hello Claudia
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.1555.64 ▲7.00
Dashboard /wp-admin3.50 ▲0.0934.81 ▼4.23
Posts /wp-admin/edit.php3.73 ▲0.0939.17 ▲0.55
Add New Post /wp-admin/post-new.php6.96 ▼0.0093.44 ▼1,234.99
Media Library /wp-admin/upload.php3.38 ▲0.0926.63 ▲2.18

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Hello Claudia
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,022 ▲26816.38 ▲0.688.45 ▲2.402.66 ▼0.64
Dashboard /wp-admin3,004 ▲1436.42 ▲0.10120.28 ▼16.35223.46 ▲57.79
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0062.49 ▼2.23139.88 ▼1.52
Add New Post /wp-admin/post-new.php1,711 ▼621.47 ▼0.29435.36 ▲4.64157.10 ▼12.42
Media Library /wp-admin/upload.php1,695 ▼35.53 ▲0.03149.44 ▲10.76185.60 ▼6.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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)
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/hello-claudia/hello-claudia.php:172

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 97% 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 (Windows Azure Japanese official character "Claudia Madobe" is plugin to speak a message on a dashboard.)
You can look at the official readme.txt

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

Analyzing the main PHP file in "Hello Claudia" version 0.4.2.1
103 characters long description:
Windows Azure Japanese official character "Claudia Madobe" is plugin to speak a message on a dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin676 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13870424
PO File15958141
JavaScript2018111

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods631.58%
▷ Protected methods00.00%
▷ Private methods1368.42%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.65MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/back-claudia-4.png64.73KB20.22KB▼ 68.77%
images/back-claudia-sd1.png29.60KB9.24KB▼ 68.78%
images/back-fukidashi-bottom.png3.78KB0.54KB▼ 85.57%
images/back-claudia-5.png53.38KB16.30KB▼ 69.47%
images/back-claudia-3.png44.43KB14.81KB▼ 66.67%