10% native-wp-cleaner

Code Review | Native WP Cleaner

WordPress plugin Native WP Cleaner scored10%from 54 tests.

About plugin

  • Plugin page: native-wp-cleaner
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 10, 2017
  • Latest release: Jun 10, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Komarovski (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /1,263 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/native-wp-cleaner/native-wp-cleaner.php+23
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.46MB] [CPU: ▼50.72ms] Passed 4 tests

A check of server-side resources used by Native WP Cleaner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.53 ▼0.945.25 ▼34.29
Dashboard /wp-admin2.55 ▼0.767.94 ▼43.94
Posts /wp-admin/edit.php2.55 ▼0.818.31 ▼36.44
Add New Post /wp-admin/post-new.php2.55 ▼3.348.12 ▼88.21
Media Library /wp-admin/upload.php2.55 ▼0.687.14 ▼27.31
Native WP Cleaner /wp-admin/options-general.php?page=native-wp-cleaner2.557.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Native WP Cleaner
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.13 ▼1.165.37 ▲3.6340.03 ▼6.14
Dashboard /wp-admin2,210 ▲225.83 ▲0.90112.69 ▼5.5742.62 ▼1.90
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0540.14 ▲1.3836.50 ▼0.65
Add New Post /wp-admin/post-new.php1,517 ▼517.69 ▼5.46608.40 ▼26.0261.70 ▲1.29
Media Library /wp-admin/upload.php1,392 ▲74.17 ▼0.0395.51 ▼6.1640.77 ▼3.50
Native WP Cleaner /wp-admin/options-general.php?page=native-wp-cleaner1,9331.7426.6234.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/native-wp-cleaner/native-wp-cleaner.php+23
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
These server-side errors were triggered
  • 143 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=native-wp-cleaner
    • > Notice in wp-content/plugins/native-wp-cleaner/native-wp-cleaner.php+714
    Trying to access array offset on value of type bool

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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/native-wp-cleaner/native-wp-cleaner.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in native-wp-cleaner/assets to your readme.txt
The official readme.txt is a good inspiration

native-wp-cleaner/native-wp-cleaner.php 92% from 13 tests

The entry point to "Native WP Cleaner" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 300 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,166 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1066670
PO File2246374496

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin