10% doggus-clean-heads

Code Review | Doggus WP Heads Cleaner

WordPress plugin Doggus WP Heads Cleaner scored10%from 54 tests.

About plugin

  • Plugin page: doggus-clean-heads
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2013
  • Latest release: May 2, 2013
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: studiodoggus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,539 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/doggus-clean-heads/includes/do-functions.php+3
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.94MB] [CPU: ▼50.22ms] Passed 4 tests

Server-side resources used by Doggus WP Heads Cleaner
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.425.21 ▼35.62
Dashboard /wp-admin2.06 ▼1.246.90 ▼43.63
Posts /wp-admin/edit.php2.07 ▼1.295.95 ▼37.45
Add New Post /wp-admin/post-new.php2.06 ▼3.825.85 ▼84.17
Media Library /wp-admin/upload.php2.06 ▼1.165.55 ▼29.56
Doggus Head Cleaner /wp-admin/options-general.php?page=doggusclean-options2.076.75

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Doggus WP Heads Cleaner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.14 ▼0.511.96 ▲0.2743.55 ▼0.33
Dashboard /wp-admin2,196 ▲195.64 ▼0.0091.34 ▲4.6141.13 ▼0.29
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0133.04 ▼2.0239.31 ▲2.27
Add New Post /wp-admin/post-new.php1,542 ▲718.23 ▼0.04640.43 ▲17.9259.49 ▼7.27
Media Library /wp-admin/upload.php1,404 ▲14.28 ▲0.07106.76 ▲12.9646.71 ▲5.64
Doggus Head Cleaner /wp-admin/options-general.php?page=doggusclean-options8252.1727.7627.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/doggus-clean-heads/includes/do-functions.php+3
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=doggusclean-options
    • > Notice in wp-content/plugins/doggus-clean-heads/includes/options_page.php+22
    Trying to access array offset on value of type bool

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 fix the following items
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/doggus-clean-heads/trunk/includes/do-functions.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/doggus-clean-heads/trunk/includes/options_page.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/doggus-clean-heads/includes/options_page.php:38
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/doggus-clean-heads/includes/do-functions.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/doggus-clean-heads/includes/do-functions.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/doggus-clean-heads/trunk/doggus-clean-heads.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/doggus-clean-heads/includes/do-functions.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/doggus-clean-heads/trunk/includes/do-functions.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/doggus-clean-heads/trunk/includes/do-functions.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/doggus-clean-heads/includes/do-functions.php on line 5

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: remove unwanted tags

doggus-clean-heads/doggus-clean-heads.php Passed 13 tests

The main PHP file in "Doggus WP Heads Cleaner" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
26 characters long description:
Doggus header clean plugin

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 plugin82 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3171182

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin