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.10MB] [CPU: ▼3.80ms] Passed 4 tests
Server-side resources used by Snack Ads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.20 ▲0.28 |
Dashboard /wp-admin | 3.40 ▲0.10 | 58.35 ▲3.99 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.83 ▼1.75 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.65 ▼14.05 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.93 ▲0.33 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Snack Ads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 13.21 ▼1.55 | 1.81 ▼0.22 | 44.26 ▲1.12 |
Dashboard /wp-admin | 2,217 ▲29 | 5.77 ▼0.05 | 97.99 ▼13.18 | 38.29 ▼4.92 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 1.99 ▼0.06 | 38.26 ▼2.27 | 33.65 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 17.58 ▼0.59 | 683.89 ▲8.04 | 59.73 ▼1.58 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.24 ▲0.03 | 96.64 ▼16.18 | 42.68 ▼6.67 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
snack-ads/snack-ads.php Passed 13 tests
The principal PHP file in "Snack Ads" v. 2.1.1 is loaded by WordPress automatically on each request
70 characters long description:
Allows to display Ad units managed by Snack Media Ad Ops team remotely
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
No dangerous file extensions were detected819 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 213 | 550 | 814 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 19 | 31.67% |
▷ Public methods | 57 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 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
PNG images were not found in this plugin