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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.74ms] Passed 4 tests
Server-side resources used by PopAd
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.53 ▲3.03 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.06 ▲1.98 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.72 ▼1.85 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.52 ▼7.69 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.14 ▲0.62 |
General PopAd /wp-admin/edit.php?post_type=pop_ad&page=pop-ad-general | 3.24 | 30.31 |
Add New /wp-admin/post-new.php?post_type=pop_ad | 3.31 | 39.99 |
All PopAd /wp-admin/edit.php?post_type=pop_ad | 3.31 | 37.03 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by PopAd
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲214 | 13.95 ▼0.80 | 10.33 ▲8.47 | 42.52 ▲0.88 |
Dashboard /wp-admin | 2,241 ▲50 | 4.82 ▼0.05 | 101.72 ▲1.39 | 42.19 ▲0.64 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.07 ▲0.02 | 36.46 ▼2.88 | 32.66 ▼4.07 |
Add New Post /wp-admin/post-new.php | 6,257 ▲4,723 | 19.40 ▼3.81 | 907.47 ▲226.50 | 76.54 ▲4.82 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.19 ▼0.05 | 94.04 ▼17.69 | 40.57 ▼8.87 |
General PopAd /wp-admin/edit.php?post_type=pop_ad&page=pop-ad-general | 856 | 2.05 | 30.43 | 30.41 |
Add New /wp-admin/post-new.php?post_type=pop_ad | 1,503 | 2.76 | 57.12 | 59.39 |
All PopAd /wp-admin/edit.php?post_type=pop_ad | 1,117 | 1.99 | 33.97 | 30.32 |
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 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 19× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/popad/admin/css/font/index.php
- > /wp-content/plugins/popad/images/index.php
- > /wp-content/plugins/popad/admin/settings.php
- > /wp-content/plugins/popad/admin/banner/index.php
- > /wp-content/plugins/popad/index.php
- > /wp-content/plugins/popad/admin/index.php
- > /wp-content/plugins/popad/admin/post-type-filters.php
- > /wp-content/plugins/popad/admin/js/index.php
- > /wp-content/plugins/popad/admin/visual-media.php
- > /wp-content/plugins/popad/admin/css/css/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
popad/popad.php Passed 13 tests
The entry point to "PopAd" version 1.0.4 is a PHP file that has certain tags in its header comment area
80 characters long description:
The Ultimate PopUp Ads Plugin! With a Lot of Features.. Discover it by yourself.
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
Good job! No executable or dangerous file extensions detected1,713 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 324 | 33 | 1,361 |
CSS | 8 | 35 | 30 | 269 |
JavaScript | 2 | 24 | 10 | 71 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
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 | 37 | |
▷ Named functions | 37 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 0.92KB | 0.86KB | ▼ 6.08% |