Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼282.83ms] Passed 4 tests
Analyzing server-side resources used by Simple Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.11 | 32.16 ▲10.37 |
Dashboard /wp-admin | 3.09 ▲0.04 | 45.28 ▲4.23 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 42.02 ▼10.57 |
Add New Post /wp-admin/post-new.php | 4.69 ▼0.74 | 52.94 ▼1,120.41 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 32.01 ▼4.57 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Simple Ads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲92 | 15.99 ▲0.47 | 6.83 ▼0.55 | 43.85 ▼0.37 |
Dashboard /wp-admin | 2,957 ▲104 | 5.91 ▲0.09 | 135.91 ▼7.59 | 101.84 ▼10.44 |
Posts /wp-admin/edit.php | 2,730 ▲24 | 2.70 ▲0.01 | 68.30 ▲1.81 | 93.51 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,869 ▼167 | 19.07 ▲1.29 | 349.20 ▼22.48 | 109.16 ▲3.31 |
Media Library /wp-admin/upload.php | 1,737 ▼35 | 4.98 ▼0.03 | 141.21 ▼2.43 | 120.42 ▲0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-simple-ads/script.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-simple-ads/sas_func.php:120
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-simple-ads/wp-simple-ads.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
3 plugin tags: ads, adsense, google adsense
wp-simple-ads/wp-simple-ads.php Passed 13 tests
The principal PHP file in "Simple Ads" v. 1.0 is loaded by WordPress automatically on each request
24 characters long description:
A simple plugin for Ads.
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
There were no executable files found in this plugin196 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 24 | 22 | 196 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected