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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 36.75 ▼3.11 |
Dashboard /wp-admin | 3.54 ▲0.23 | 45.96 ▼6.39 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 49.34 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 92.40 ▼1.68 |
Media Library /wp-admin/upload.php | 3.44 ▲0.20 | 35.35 ▲2.54 |
FreeDAM Web Notices /wp-admin/options-general.php?page=freedam-web-notices | 3.41 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 14.54 ▲0.24 | 3.15 ▲1.23 | 41.06 ▼11.72 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▼0.03 | 110.76 ▼5.12 | 42.22 ▼6.38 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.02 ▲0.00 | 39.83 ▲4.74 | 36.55 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,545 ▲22 | 18.56 ▼4.58 | 605.87 ▼62.33 | 67.87 ▲11.86 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.00 | 95.41 ▼3.93 | 41.52 ▼4.12 |
FreeDAM Web Notices /wp-admin/options-general.php?page=freedam-web-notices | 967 | 2.19 | 25.63 | 30.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 782 | 371 | 4,734 |
PHP | 29 | 247 | 1,007 | 1,217 |
CSS | 1 | 11 | 4 | 44 |
HTML | 1 | 0 | 0 | 11 |
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 code | 0.17 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 2 | 3.51% |
▷ Public methods | 52 | 91.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.77% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/activate.png | 47.66KB | 17.93KB | ▼ 62.38% |
admin/assets/additionalcss.png | 10.41KB | 4.10KB | ▼ 60.57% |
admin/assets/settings.png | 16.55KB | 6.01KB | ▼ 63.69% |
admin/assets/additionalcss2.png | 23.36KB | 8.82KB | ▼ 62.23% |
admin/assets/freedam-our-website2.png | 94.06KB | 31.17KB | ▼ 66.86% |