Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/swiftad/swiftad.php+213
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.39MB] [CPU: ▲0.24ms] 75% from 4 tests
This is a short check of server-side resources used by SwiftAd
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 10,121.78ms on /wp-admin/admin.php?page=swiftad)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 44.04 ▲0.15 |
Dashboard /wp-admin | 3.75 ▲0.45 | 52.70 ▲3.83 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 52.62 ▼10.44 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 127.12 ▲25.52 |
Media Library /wp-admin/upload.php | 3.68 ▲0.44 | 44.13 ▲7.41 |
Dashboard /wp-admin/admin.php?page=swiftad | 3.66 | 10,121.78 |
Inventory /wp-admin/admin.php?page=swiftad-inventory | 3.65 | 44.86 |
Swift Display Ads /wp-admin/edit.php?post_type=swiftad_post_type | 3.72 | 51.03 |
Plugin Setup /wp-admin/admin.php?page=swiftad-settings | 3.62 | 41.47 |
Reports /wp-admin/admin.php?page=swiftad-displayads | 3.64 | 39.20 |
Split Testing /wp-admin/admin.php?page=swiftad-abtest | 3.64 | 39.45 |
Server storage [IO: ▲0.64MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_swiftad_inventory |
wp_swiftad_displayad |
wp_swiftad_abtest |
New WordPress options |
---|
can_compress_scripts |
swiftad_config |
widget_recent-posts |
widget_theysaidso_widget |
swiftpost_license |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SwiftAd
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲127 | 13.39 ▼0.66 | 1.92 ▲0.28 | 46.71 ▲5.96 |
Dashboard /wp-admin | 2,272 ▲84 | 5.92 ▲0.04 | 117.44 ▲8.78 | 46.62 ▲1.13 |
Posts /wp-admin/edit.php | 2,158 ▲69 | 2.24 ▲0.22 | 42.77 ▲3.27 | 40.12 ▲5.75 |
Add New Post /wp-admin/post-new.php | 1,573 ▲52 | 17.61 ▼5.65 | 658.00 ▼18.12 | 78.12 ▲15.51 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.33 ▲0.11 | 102.61 ▼11.85 | 45.54 ▲1.81 |
Dashboard /wp-admin/admin.php?page=swiftad | 1,014 | 2.31 | 27.92 | 47.77 |
Inventory /wp-admin/admin.php?page=swiftad-inventory | 947 | 2.19 | 33.93 | 31.97 |
Swift Display Ads /wp-admin/edit.php?post_type=swiftad_post_type | 1,164 | 2.20 | 46.40 | 33.08 |
Plugin Setup /wp-admin/admin.php?page=swiftad-settings | 944 | 2.22 | 44.47 | 34.74 |
Reports /wp-admin/admin.php?page=swiftad-displayads | 898 | 2.21 | 30.54 | 43.92 |
Split Testing /wp-admin/admin.php?page=swiftad-abtest | 902 | 2.18 | 32.65 | 33.83 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=swiftad-abtest
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=swiftad-abtest
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 101 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=swiftad-abtest
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 26 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=swiftad-abtest
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
- > GET request to /wp-admin/admin.php?page=swiftad-settings
- > Notice in wp-content/plugins/swiftad/swiftad.php+1037
Undefined index: shortcode_in_widgets
- > GET request to /wp-admin/admin.php?page=swiftad-settings
- > Notice in wp-content/plugins/swiftad/swiftad.php+1040
Undefined index: serve-asap
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/swiftad/admin/wpsa-notifications.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/swiftad/admin/swiftad_admin_functions.php:188
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/swiftad/swiftad.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Example of Swift Ad New Form) image missing
swiftad/swiftad.php Passed 13 tests
This is the main PHP file of "SwiftAd" version 0.5.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Swift Display Ads with geo targeting and per user frequency capping
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,172 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 493 | 448 | 1,953 |
CSS | 5 | 140 | 64 | 1,783 |
PO File | 1 | 74 | 80 | 237 |
JavaScript | 3 | 40 | 42 | 140 |
SVG | 3 | 0 | 2 | 57 |
HTML | 1 | 3 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.39MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 391.75KB | 97.55KB | ▼ 75.10% |
images/icon-menu.png | 0.78KB | 0.73KB | ▼ 6.61% |
images/logo.png | 3.80KB | 2.82KB | ▼ 25.73% |
images/small-logo.png | 4.73KB | 3.75KB | ▼ 20.69% |
images/icon-close.png | 1.78KB | 1.11KB | ▼ 37.92% |