Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼143.98ms] Passed 4 tests
A check of server-side resources used by DFP Ad Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 36.20 ▲6.98 |
Dashboard /wp-admin | 3.15 ▲0.09 | 68.62 ▲14.67 |
Posts /wp-admin/edit.php | 3.26 ▼0.34 | 44.80 ▼3.54 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 89.74 ▼587.24 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 45.99 ▲7.88 |
All Ad Positions /wp-admin/edit.php?post_type=dfp_ads | 3.13 | 30.96 |
Settings /wp-admin/edit.php?post_type=dfp_ads&page=settings | 3.06 | 30.77 |
Add New /wp-admin/post-new.php?post_type=dfp_ads | 3.30 | 43.46 |
Import /wp-admin/edit.php?post_type=dfp_ads&page=import | 3.06 | 35.97 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 147 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_dfp-ad-widget |
Browser metrics Passed 4 tests
Checking browser requirements for DFP Ad Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,867 ▲261 | 18.05 ▲2.46 | 36.61 ▲28.10 | 54.67 ▲5.99 |
Dashboard /wp-admin | 3,011 ▲80 | 5.93 ▼0.04 | 166.64 ▲19.96 | 119.67 ▲9.30 |
Posts /wp-admin/edit.php | 2,780 ▲41 | 2.70 ▲0.02 | 64.26 ▼1.87 | 92.88 ▲5.56 |
Add New Post /wp-admin/post-new.php | 1,709 ▲37 | 17.75 ▼1.33 | 388.07 ▲7.07 | 114.91 ▲4.14 |
Media Library /wp-admin/upload.php | 1,848 ▲41 | 5.04 ▲0.04 | 151.39 ▼12.50 | 144.99 ▲13.42 |
All Ad Positions /wp-admin/edit.php?post_type=dfp_ads | 1,445 | 2.62 | 60.94 | 75.61 |
Settings /wp-admin/edit.php?post_type=dfp_ads&page=settings | 1,117 | 2.10 | 58.47 | 84.44 |
Add New /wp-admin/post-new.php?post_type=dfp_ads | 2,106 | 3.28 | 115.60 | 94.52 |
Import /wp-admin/edit.php?post_type=dfp_ads&page=import | 1,108 | 2.11 | 61.47 | 86.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_dfp-ad-widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 85× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/tests/Ddeboer/DataImport/Tests/Filter/ValidationFilterTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Ddeboer\\DataImport\\Filter\\FilterInterface' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/src/Ddeboer/DataImport/Filter/ValidatorFilter.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/tests/Ddeboer/DataImport/Tests/ItemConverter/MappingItemConverterTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Ddeboer\\DataImport\\Filter\\FilterInterface' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/src/Ddeboer/DataImport/Filter/CallbackFilter.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/tests/Ddeboer/DataImport/Tests/ValueConverter/ObjectConverterTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Ddeboer\\DataImport\\Writer\\AbstractWriter' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/src/Ddeboer/DataImport/Writer/DoctrineWriter.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/tests/Ddeboer/DataImport/Tests/Writer/ConsoleTableWriterTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/tests/Ddeboer/DataImport/Tests/WorkflowTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Ddeboer\\DataImport\\Exception\\ExceptionInterface' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/src/Ddeboer/DataImport/Exception/WriterException.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dfp-ads/vendor/ddeboer/data-import/tests/Ddeboer/DataImport/Tests/Reader/OneToManyReaderTest.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: doubleclick, dfp, ad trafficking, ads, ad ops
dfp-ads/plugin.php 92% from 13 tests
The primary PHP file in "DFP Ad Manager" version 0.3.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("dfp-ads.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin7,330 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 1,516 | 3,468 | 6,087 |
Markdown | 2 | 339 | 0 | 984 |
JSON | 3 | 0 | 0 | 193 |
JavaScript | 4 | 4 | 31 | 50 |
XML | 1 | 2 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 9 | |
Traits | 2 | |
Classes | 104 | |
▷ Abstract classes | 6 | 5.77% |
▷ Concrete classes | 98 | 94.23% |
▷ Final classes | 0 | 0.00% |
Methods | 547 | |
▷ Static methods | 6 | 1.10% |
▷ Public methods | 499 | 91.22% |
▷ Protected methods | 38 | 6.95% |
▷ Private methods | 10 | 1.83% |
Functions | 44 | |
▷ Named functions | 14 | 31.82% |
▷ Anonymous functions | 30 | 68.18% |
Constants | 12 | |
▷ Global constants | 1 | 8.33% |
▷ Class constants | 11 | 91.67% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin