89% dismiss-privacy-nag

Code Review | Dismiss Privacy Nag

WordPress plugin Dismiss Privacy Nag scored89%from 54 tests.

About plugin

  • Plugin page: dismiss-privacy-nag
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-alpha-42959-src-5.1
  • WordPress version: 6.3.1
  • First release: May 10, 2018
  • Latest release: Jan 25, 2019
  • Number of updates: 48
  • Update frequency: every 5.4 days
  • Top authors: Luciano Croce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.05ms] Passed 4 tests

Server-side resources used by Dismiss Privacy Nag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.65 ▼2.56
Dashboard /wp-admin3.31 ▲0.0145.18 ▼2.12
Posts /wp-admin/edit.php3.36 ▲0.0149.31 ▲3.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.26 ▼2.61
Media Library /wp-admin/upload.php3.23 ▲0.0038.61 ▲4.57

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dismiss Privacy Nag
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.71 ▼0.971.59 ▼0.3639.10 ▲0.99
Dashboard /wp-admin2,209 ▲215.91 ▲1.04107.02 ▼4.7843.14 ▲2.99
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0039.17 ▲3.9834.78 ▲4.88
Add New Post /wp-admin/post-new.php1,533 ▲1323.26 ▲0.14634.90 ▼67.7555.77 ▲8.29
Media Library /wp-admin/upload.php1,385 ▲34.23 ▲0.05103.86 ▲5.1243.60 ▼3.99

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 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Screenshot of "Dismiss Privacy Nag") image missing
You can look at the official readme.txt

dismiss-privacy-nag/dismiss-privacy-nag.php 85% from 13 tests

This is the main PHP file of "Dismiss Privacy Nag" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "4.9.6-alpha-42959-src")

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

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
There were not PNG files found in your plugin