Benchmarks
Plugin footprint 65% 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.33MB] [CPU: ▲0.05ms] 75% from 4 tests
A check of server-side resources used by SwiftPost
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 10,111.19ms on /wp-admin/admin.php?page=swiftpost)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 43.63 ▲5.91 |
Dashboard /wp-admin | 3.67 ▲0.36 | 48.00 ▼0.28 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 53.72 ▲4.76 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 88.12 ▼5.45 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 37.22 ▲1.16 |
Plugin Setup /wp-admin/admin.php?page=swiftpost-settings | 3.56 | 49.93 |
Reports /wp-admin/admin.php?page=swiftpost-nativepost | 3.56 | 34.65 |
Dashboard /wp-admin/admin.php?page=swiftpost | 3.58 | 10,111.19 |
Split Testing /wp-admin/admin.php?page=swiftpost-abtest | 3.56 | 34.74 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 42 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_swiftpost_abtest |
wp_swiftpost_nativepost |
New WordPress options |
---|
widget_recent-comments |
swiftpost_config |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
swiftpost_license |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SwiftPost
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲232 | 13.76 ▼0.82 | 5.05 ▲3.20 | 41.70 ▼5.60 |
Dashboard /wp-admin | 2,261 ▲73 | 4.94 ▲0.03 | 98.93 ▼15.10 | 42.33 ▲0.37 |
Posts /wp-admin/edit.php | 2,144 ▲52 | 2.26 ▲0.30 | 40.04 ▼1.11 | 35.86 ▲1.04 |
Add New Post /wp-admin/post-new.php | 6,457 ▲4,943 | 25.96 ▲8.45 | 837.28 ▲140.21 | 55.92 ▲4.13 |
Media Library /wp-admin/upload.php | 1,447 ▲62 | 4.54 ▲0.26 | 100.50 ▼2.63 | 43.51 ▲1.37 |
Plugin Setup /wp-admin/admin.php?page=swiftpost-settings | 1,078 | 2.45 | 30.84 | 44.17 |
Reports /wp-admin/admin.php?page=swiftpost-nativepost | 903 | 2.30 | 27.85 | 37.37 |
Dashboard /wp-admin/admin.php?page=swiftpost | 1,016 | 2.31 | 27.37 | 32.19 |
Split Testing /wp-admin/admin.php?page=swiftpost-abtest | 918 | 2.30 | 27.49 | 25.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_swiftpost_abtest
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/swiftpost/template/swiftpost-teaser.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/swiftpost/admin/wpfn-notifications.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/swiftpost/template/swiftpost-integrity.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/swiftpost/template/swiftpost-teaser-sideimg.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/swiftpost/template/swiftpost-icon.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/swiftpost/template/swiftpost-renew.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/swiftpost/admin/swiftpost_admin_functions.php:180
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/swiftpost/template/swiftpost-full.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/swiftpost/swiftpost.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/swiftpost/template/swiftpost-ethos.php:1
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: geo targeting, native advertising, frequency capping, sponsored content, advertising
swiftpost/swiftpost.php Passed 13 tests
This is the main PHP file of "SwiftPost" version 0.5.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
SwiftPost, native advertising for Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,992 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 413 | 489 | 1,870 |
CSS | 5 | 127 | 66 | 1,760 |
PO File | 1 | 49 | 60 | 184 |
JavaScript | 3 | 36 | 20 | 113 |
SVG | 3 | 0 | 2 | 63 |
HTML | 1 | 3 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 40 | |
▷ Named functions | 40 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.96MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 168.29KB | 41.89KB | ▼ 75.11% |
images/icon-menu-over.png | 0.48KB | 0.54KB | 0.00% |
images/small-logo.png | 2.34KB | 2.04KB | ▼ 13.20% |
images/logo.png | 5.46KB | 3.50KB | ▼ 35.97% |
images/icon-menu.png | 0.78KB | 0.73KB | ▼ 6.61% |