84% hello-ziggy

Code Review | Hello Ziggy

WordPress plugin Hello Ziggy scored84%from 54 tests.

About plugin

  • Plugin page: hello-ziggy
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.9
  • WordPress version: 6.3.1
  • First release: Jan 27, 2013
  • Latest release: Jan 25, 2022
  • Number of updates: 8
  • Update frequency: every 410.8 days
  • Top authors: jazzs3quence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,106 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.73ms] Passed 4 tests

Server-side resources used by Hello Ziggy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.33 ▲0.90
Dashboard /wp-admin3.31 ▼0.0346.03 ▼10.38
Posts /wp-admin/edit.php3.36 ▲0.0149.29 ▲1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.66 ▼23.11
Media Library /wp-admin/upload.php3.23 ▲0.0137.10 ▲4.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hello Ziggy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.19 ▼1.451.79 ▼0.0941.16 ▲2.82
Dashboard /wp-admin2,208 ▲205.84 ▲0.9697.96 ▼10.8938.40 ▼3.78
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0839.26 ▼3.2234.08 ▼1.89
Add New Post /wp-admin/post-new.php1,587 ▲5922.36 ▲3.98671.63 ▲62.5851.22 ▼7.08
Media Library /wp-admin/upload.php1,396 ▲54.08 ▼0.17108.72 ▲12.5849.71 ▲7.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 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-ziggy/hello-ziggy.php:81

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: ziggy stardust, hello, hello dolly, music, ziggy...

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

This is the main PHP file of "Hello Ziggy" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
102 characters long description:
Instead of "Hello Dolly", this plugin will display a random lyric from David Bowie's "Ziggy Stardust".

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin62 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1122553
CSS1009

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin