84% nietzsche

Code Review | Nietzsche - WP Head Cleaner

WordPress plugin Nietzsche - WP Head Cleaner scored84%from 54 tests.

About plugin

  • Plugin page: nietzsche
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: May 4, 2019
  • Latest release: Oct 23, 2019
  • Number of updates: 18
  • Update frequency: every 9.6 days
  • Top authors: deadwriterssociety (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,604 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.35MB] [CPU: ▼10.61ms] Passed 4 tests

Analyzing server-side resources used by Nietzsche - WP Head Cleaner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▼0.0142.56 ▼0.23
Dashboard /wp-admin3.56 ▼0.0750.46 ▼19.91
Posts /wp-admin/edit.php3.67 ▼0.0153.65 ▲4.99
Add New Post /wp-admin/post-new.php4.83 ▼1.3272.38 ▼27.30
Media Library /wp-admin/upload.php3.48 ▼0.0146.55 ▲5.93

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Nietzsche - WP Head Cleaner: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,774 ▲1314.20 ▼0.171.32 ▼0.3943.11 ▼0.69
Dashboard /wp-admin2,198 ▲185.66 ▼0.0692.11 ▼7.9240.21 ▼2.70
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0141.51 ▲5.1834.92 ▼1.75
Add New Post /wp-admin/post-new.php1,271 ▼26215.53 ▼7.67306.65 ▼408.2140.02 ▼15.29
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.09110.93 ▲2.0746.91 ▲1.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 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/nietzsche/nietzsche.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

nietzsche/nietzsche.php 92% from 13 tests

The main file in "Nietzsche - WP Head Cleaner" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
There were no executable files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181741

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin