83% dbs-neatlygone

Code Review | DBS-NeatlyGone

WordPress plugin DBS-NeatlyGone scored83%from 54 tests.

About plugin

  • Plugin page: dbs-neatlygone
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Jan 10, 2015
  • Latest release: Mar 15, 2015
  • Number of updates: 12
  • Update frequency: every 5.3 days
  • Top authors: DBStheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,058 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.64MB] [CPU: ▼23.07ms] Passed 4 tests

Server-side resources used by DBS-NeatlyGone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.66 ▲2.46
Dashboard /wp-admin3.36 ▲0.0144.50 ▼16.34
Posts /wp-admin/edit.php3.47 ▲0.1244.50 ▼3.03
Add New Post /wp-admin/post-new.php3.21 ▼2.6834.23 ▼73.93
Media Library /wp-admin/upload.php3.28 ▲0.0533.27 ▲1.04

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
NeatlyGoneWhatToHide
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

DBS-NeatlyGone: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.131.71 ▼0.1840.28 ▼3.69
Dashboard /wp-admin2,203 ▲125.82 ▲0.9599.01 ▼14.8339.36 ▼7.02
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0336.54 ▲2.4534.22 ▼0.33
Add New Post /wp-admin/post-new.php6,256 ▲4,72721.84 ▲3.11826.76 ▲212.1266.51 ▲15.44
Media Library /wp-admin/upload.php1,385 ▼34.17 ▼0.2094.95 ▼1.4540.84 ▼1.30

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • NeatlyGoneWhatToHide

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dbs-neatlygone/lib/DBS-Funcy.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 (All that you see!)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === dbs-neatlygone === )
Please take inspiration from this readme.txt

dbs-neatlygone/DBS-NeatlyGone.php 92% from 13 tests

The main PHP script in "DBS-NeatlyGone" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dbs-neatlygone.php" instead of "DBS-NeatlyGone.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin342 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26621299
PO File25543

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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