Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.86ms] Passed 4 tests
A check of server-side resources used by Ads by datafeedr.com
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.58 ▲3.61 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.37 ▼14.12 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.43 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.73 ▲0.17 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.78 ▼1.66 |
All Ads /wp-admin/edit.php?post_type=dfads | 3.59 | 50.94 |
Add New Ad /wp-admin/post-new.php?post_type=dfads | 3.89 | 58.12 |
Ads /wp-admin/options-general.php?page=dfads-settings | 3.35 | 35.05 |
Groups /wp-admin/edit-tags.php?taxonomy=dfads_group&post_type=dfads | 3.28 | 37.11 |
Server storage [IO: ▲2.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 377 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
dfads_transient_data_deleted_time |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Ads by datafeedr.com: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.40 ▼0.96 | 8.73 ▲6.64 | 44.29 ▲0.10 |
Dashboard /wp-admin | 2,217 ▲40 | 5.58 ▼0.12 | 87.95 ▼0.97 | 66.55 ▲23.53 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 1.97 ▼0.06 | 53.74 ▲15.04 | 38.78 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 18.29 ▼4.78 | 631.45 ▼51.63 | 55.73 ▼7.65 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.13 ▼0.16 | 115.88 ▲3.34 | 99.00 ▲50.15 |
All Ads /wp-admin/edit.php?post_type=dfads | 1,244 | 2.09 | 39.21 | 33.13 |
Add New Ad /wp-admin/post-new.php?post_type=dfads | 2,305 | 4.44 | 85.58 | 125.09 |
Ads /wp-admin/options-general.php?page=dfads-settings | 1,232 | 2.25 | 30.36 | 30.23 |
Groups /wp-admin/edit-tags.php?taxonomy=dfads_group&post_type=dfads | 1,311 | 2.12 | 26.59 | 32.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- dfads_transient_data_deleted_time
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ads-by-datafeedrcom/lib/metabox/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ads-by-datafeedrcom/inc/admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_dropdown_categories() in wp-content/plugins/ads-by-datafeedrcom/inc/generator.php:23
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: advertising, banner ads, random ads, datafeedr, rotating ads...
ads-by-datafeedrcom/dfads.php 85% from 13 tests
The principal PHP file in "Ads by datafeedr.com" v. 1.1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ads-by-datafeedrcom.php" instead of "dfads.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin47,589 lines of code in 207 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 61 | 2,221 | 6,123 | 7,894 |
CSS | 14 | 1,188 | 1,164 | 5,103 |
JavaScript | 9 | 372 | 625 | 1,534 |
Markdown | 3 | 237 | 0 | 735 |
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.50 |
Average class complexity | 20.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 8 | 11.11% |
▷ Concrete classes | 64 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 565 | |
▷ Static methods | 88 | 15.58% |
▷ Public methods | 474 | 83.89% |
▷ Protected methods | 88 | 15.58% |
▷ Private methods | 3 | 0.53% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 11 | 64.71% |
▷ Class constants | 6 | 35.29% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/metabox/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
lib/metabox/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
lib/metabox/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |