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
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼307.41ms] Passed 4 tests
This is a short 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.69 ▲0.18 | 56.22 ▲6.55 |
Dashboard /wp-admin | 3.59 ▲0.18 | 33.92 ▲1.05 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 38.84 ▼4.92 |
Add New Post /wp-admin/post-new.php | 7.06 ▲0.09 | 96.42 ▼1,223.59 |
Media Library /wp-admin/upload.php | 3.47 ▲0.17 | 25.43 ▼2.19 |
Groups /wp-admin/edit-tags.php?taxonomy=dfads_group&post_type=dfads | 3.47 | 25.39 |
Ads /wp-admin/options-general.php?page=dfads-settings | 4.06 | 28.27 |
Add New Ad /wp-admin/post-new.php?post_type=dfads | 4.69 | 51.08 |
All Ads /wp-admin/edit.php?post_type=dfads | 4.20 | 38.55 |
Server storage [IO: ▲2.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 377 new files
Database: no new tables, 1 new option
New WordPress options |
---|
dfads_transient_data_deleted_time |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ads by datafeedr.com
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,951 ▲197 | 16.15 ▲0.40 | 8.70 ▲2.17 | 2.95 ▲0.18 |
Dashboard /wp-admin | 2,937 ▲79 | 6.13 ▼0.02 | 122.42 ▼14.47 | 169.78 ▲10.83 |
Posts /wp-admin/edit.php | 2,730 ▲42 | 3.14 ▼0.09 | 65.84 ▼0.08 | 144.19 ▲4.01 |
Add New Post /wp-admin/post-new.php | 1,690 ▲29 | 22.01 ▲5.13 | 438.95 ▼0.37 | 169.80 ▲16.94 |
Media Library /wp-admin/upload.php | 1,746 ▲48 | 5.74 ▲0.23 | 123.50 ▼14.92 | 215.86 ▲25.71 |
Groups /wp-admin/edit-tags.php?taxonomy=dfads_group&post_type=dfads | 1,669 | 2.59 | 56.14 | 114.04 |
Ads /wp-admin/options-general.php?page=dfads-settings | 1,600 | 2.75 | 58.20 | 146.68 |
Add New Ad /wp-admin/post-new.php?post_type=dfads | 3,108 | 6.41 | 122.67 | 240.99 |
All Ads /wp-admin/edit.php?post_type=dfads | 1,533 | 3.12 | 66.10 | 121.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- dfads_transient_data_deleted_time
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 44× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/types/CMB2_Type_Text_Date.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_Radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/init.php:126
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.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_Colorpicker.php:13
- > 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_REST_Controller_Boxes' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > 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_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/ads-by-datafeedrcom/lib/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: advertising, rotating ads, ads, google adsense, random 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
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("ads-by-datafeedrcom.php" instead of "dfads.php")
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
Success! There were no dangerous 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
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
lib/metabox/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
img/datafeedr-menu-icon.png | 0.43KB | 0.30KB | ▼ 29.09% |
lib/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |