Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.30MB] [CPU: ▼17.38ms] Passed 4 tests
This is a short check of server-side resources used by Ads Master
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 32.18 ▼9.07 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.59 ▼5.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.01 ▼3.55 |
Add New Post /wp-admin/post-new.php | 4.63 ▼1.25 | 43.08 ▼51.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.66 ▲2.53 |
Ads Master /wp-admin/options-general.php?page=ads-master | 3.25 | 31.62 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_ads_master_widget |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by Ads Master
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▲0.03 | 1.75 ▲0.05 | 42.54 ▼0.29 |
Dashboard /wp-admin | 2,204 ▲30 | 5.61 ▲0.01 | 83.05 ▼17.87 | 37.03 ▼6.09 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▲0.02 | 37.29 ▲2.11 | 36.67 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.13 ▼0.55 | 669.94 ▼32.85 | 58.13 ▲4.02 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▲0.09 | 98.03 ▼15.88 | 47.10 ▼2.78 |
Ads Master /wp-admin/options-general.php?page=ads-master | 687 | 1.45 | 6.98 | 17.54 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_ads_master_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ads-master
- > Parse error in wp-content/plugins/ads-master/ads_master_core.php+245
syntax error, unexpected end of file
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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/ads-master/ads_master_core.php on line 245
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: google advertisment, google ads, ads, post display google ads, google adsence
ads-master/ads-master.php Passed 13 tests
The primary PHP file in "Ads Master" version 1.0.1 is used by WordPress to initiate all plugin functionality
48 characters long description:
This plugin used to display ads in your website.
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 detected437 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 61 | 15 | 350 |
CSS | 1 | 3 | 0 | 87 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 55.54KB | 31.58KB | ▼ 43.14% |
screenshot-1.png | 28.29KB | 16.40KB | ▼ 42.01% |