84% freedam-web-notices

Code Review | FreeDAM Web Notices

WordPress plugin FreeDAM Web Notices scored 84% from 54 tests.

About plugin

  • Plugin page: freedam-web-notices
  • Plugin version: 1.5.0
  • PHP compatiblity: 8.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 17, 2020
  • Latest release: Mar 21, 2023
  • Number of updates: 13
  • Update frequency: every 70.4 days
  • Top authors: freedomsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 932 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.44ms] Passed 4 tests

This is a short check of server-side resources used by FreeDAM Web Notices
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1436.75 ▼3.11
Dashboard /wp-admin3.54 ▲0.2345.96 ▼6.39
Posts /wp-admin/edit.php3.63 ▲0.2749.34 ▲1.41
Add New Post /wp-admin/post-new.php6.09 ▲0.2092.40 ▼1.68
Media Library /wp-admin/upload.php3.44 ▲0.2035.35 ▲2.54
FreeDAM Web Notices /wp-admin/options-general.php?page=freedam-web-notices3.4134.02

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

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

Browser metrics Passed 4 tests

Checking browser requirements for FreeDAM Web Notices
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10014.54 ▲0.243.15 ▲1.2341.06 ▼11.72
Dashboard /wp-admin2,210 ▲225.85 ▼0.03110.76 ▼5.1242.22 ▼6.38
Posts /wp-admin/edit.php2,096 ▲102.02 ▲0.0039.83 ▲4.7436.55 ▲0.88
Add New Post /wp-admin/post-new.php1,545 ▲2218.56 ▼4.58605.87 ▼62.3367.87 ▲11.86
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0095.41 ▼3.9341.52 ▼4.12
FreeDAM Web Notices /wp-admin/options-general.php?page=freedam-web-notices9672.1925.6330.03

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however 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
Please fix the following
  • 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-birth-date.php on line 14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-pagesize.php on line 14
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-ascending.php on line 14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-apikey.php on line 14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-search.php on line 14
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-funeral-date.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-before-future.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-instructions.php:18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-birth-date.php on line 14
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/freedam-web-notices/admin/partials/freedam-web-notices-admin-nulls.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: freedomsoftware, notice, web-notice, funeral, freedom-software...

freedam-web-notices/freedam-web-notices.php Passed 13 tests

The primary PHP file in "FreeDAM Web Notices" version 1.5.0 is used by WordPress to initiate all plugin functionality
85 characters long description:
Retrieves your web notices from your FreeDAM database for displaying on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6,006 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27823714,734
PHP292471,0071,217
CSS111444
HTML10011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods57
▷ Static methods23.51%
▷ Public methods5291.23%
▷ Protected methods00.00%
▷ Private methods58.77%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/activate.png47.66KB17.93KB▼ 62.38%
admin/assets/additionalcss.png10.41KB4.10KB▼ 60.57%
admin/assets/settings.png16.55KB6.01KB▼ 63.69%
admin/assets/additionalcss2.png23.36KB8.82KB▼ 62.23%
admin/assets/freedam-our-website2.png94.06KB31.17KB▼ 66.86%