84% edd-disable-admin-notices

Code Review | Easy Digital Downloads - Disable Admin Notices

WordPress plugin Easy Digital Downloads - Disable Admin Notices scored84%from 54 tests.

About plugin

  • Plugin page: edd-disable-admin...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Mar 6, 2013
  • Latest release: Mar 6, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Easy Digital Downloads - Disable Admin Notices
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.49 ▼0.01
Dashboard /wp-admin3.31 ▼0.0452.18 ▼8.41
Posts /wp-admin/edit.php3.36 ▲0.0048.02 ▼5.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.08 ▼15.12
Media Library /wp-admin/upload.php3.23 ▲0.0041.35 ▲2.77

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Digital Downloads - Disable Admin Notices
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4413.56 ▼1.125.06 ▲3.0143.71 ▼0.54
Dashboard /wp-admin2,221 ▲245.90 ▼0.14120.14 ▲14.8745.37 ▼1.98
Posts /wp-admin/edit.php2,100 ▲32.05 ▲0.0336.41 ▼3.6335.58 ▲2.94
Add New Post /wp-admin/post-new.php1,545 ▲1423.10 ▼0.11686.82 ▼4.1652.64 ▼24.36
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.05112.05 ▼3.8949.31 ▲0.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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_filter() in wp-content/plugins/edd-disable-admin-notices/edd-disable-admin-notices.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: easy digital downloads, edd, pippin williamson

edd-disable-admin-notices/edd-disable-admin-notices.php Passed 13 tests

The main file in "Easy Digital Downloads - Disable Admin Notices" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
78 characters long description:
Disables the admin new sale notification emails sent by Easy Digital Downloads

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182916

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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