Benchmarks
Plugin footprint 83% 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.09MB] [CPU: ▼9.28ms] Passed 4 tests
Server-side resources used by Mobile Ad for Wordpress by AdsOptimal
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.30 ▲1.22 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.57 ▼9.86 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.58 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.64 ▼28.11 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.51 ▲3.97 |
AdsOptimal /wp-admin/options-general.php?page=adsoptimal | 3.32 | 34.10 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mobile Ad for Wordpress by AdsOptimal
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.59 ▼0.81 | 5.20 ▲3.27 | 37.55 ▼5.86 |
Dashboard /wp-admin | 2,207 ▲28 | 5.88 ▲1.03 | 114.91 ▼17.77 | 39.67 ▼20.52 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.06 ▲0.04 | 41.02 ▲2.14 | 35.24 ▼10.45 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.74 ▼5.44 | 657.89 ▼66.48 | 52.43 ▼0.05 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▲0.02 | 98.33 ▼3.41 | 42.91 ▼0.34 |
AdsOptimal /wp-admin/options-general.php?page=adsoptimal | 899 | 1.69 | 30.84 | 77.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/adsoptimal/public/views/public.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adsoptimal/admin/views/admin.php:32
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=adsoptimal
- > Network (severe)
http://www.adsoptimal.com/redirect-assets/application.v3.css - Failed to load resource: the server responded with a status of 530 ()
- > GET request to /wp-admin/options-general.php?page=adsoptimal
- > Network (severe)
http://www.adsoptimal.com/redirect-assets/customer.v3.css - Failed to load resource: the server responded with a status of 530 ()
- > GET request to /wp-admin/options-general.php?page=adsoptimal
- > Network (severe)
http://www.adsoptimal.com/assets/theme-v2/white-logo.png - Failed to load resource: the server responded with a status of 530 ()
- > GET request to /wp-admin/options-general.php?page=adsoptimal
- > Network (severe)
https://cdn.adsoptimal.com/assets/theme-v3/herounit.bg.topbar.png - Failed to load resource: the server responded with a status of 503 ()
Optimizations
Plugin configuration 90% 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 your attention:
- Screenshots: Screenshot #5 (Work across all devices.) image missing
adsoptimal/adsoptimal.php 85% from 13 tests
The main file in "Mobile Ad for Wordpress by AdsOptimal" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 224 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin699 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 131 | 474 | 605 |
CSS | 2 | 10 | 11 | 44 |
Markdown | 1 | 20 | 0 | 44 |
JavaScript | 2 | 4 | 6 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 27 | |
▷ Static methods | 8 | 29.63% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/white-logo.png | 4.32KB | 2.98KB | ▼ 31.12% |