Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.71ms] Passed 4 tests
Analyzing server-side resources used by badAd
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.00 ▲1.66 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.45 ▼5.61 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.25 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.07 ▼4.77 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.42 ▼2.16 |
badAd /wp-admin/options-general.php?page=badad-settings | 3.30 | 33.39 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 14 new options
New WordPress options |
---|
can_compress_scripts |
badad_siteslug |
badad_call_key |
badad_live_sec |
badad_live_pub |
badad_testlive |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for badAd
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.24 ▼1.01 | 2.83 ▲0.96 | 47.41 ▲0.57 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.95 | 117.99 ▲9.39 | 47.63 ▲5.35 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.14 | 37.43 ▼7.33 | 32.70 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.06 ▼0.18 | 648.41 ▲19.28 | 53.08 ▲4.40 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.02 | 100.70 ▼10.64 | 41.23 ▼4.71 |
badAd /wp-admin/options-general.php?page=badad-settings | 1,723 | 5.43 | 153.81 | 60.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'badAdDeactivate' not found
- Zombie WordPress options detected upon uninstall: 14 options
- badad_live_pub
- badad_test_sec
- badad_live_sec
- widget_recent-comments
- badad_test_pub
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- badad_access
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/badad/badad.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/badad/files.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_blog_id() in wp-content/plugins/badad/checks.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/badad/levels.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_Filesystem() in wp-content/plugins/badad/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_blog_id() in wp-content/plugins/badad/functions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_Filesystem() in wp-content/plugins/badad/callback.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=badad-settings
- > Network (severe)
https://seed151.bitchute.com/tLeAONvWjCw8/gW3C4CtlzrWw.mp4 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: embed, ads, monetize, advertise, ad shortcode
badad/badad.php 92% from 13 tests
"badAd" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 305 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected746 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 130 | 197 | 725 |
Markdown | 1 | 8 | 0 | 19 |
CSS | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin