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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.53ms] Passed 4 tests
Analyzing server-side resources used by wp Pause Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.24 ▲0.22 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.58 ▼3.80 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.84 ▼4.84 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 93.90 ▼0.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.66 ▼4.54 |
Format /wp-admin/edit-tags.php?taxonomy=format&post_type=wp_pause_ad | 3.26 | 32.61 |
Libellé /wp-admin/edit-tags.php?taxonomy=label&post_type=wp_pause_ad | 3.26 | 34.21 |
Wp Pause Ads /wp-admin/edit.php?post_type=wp_pause_ad | 3.31 | 37.44 |
Add New /wp-admin/post-new.php?post_type=wp_pause_ad | 3.38 | 45.57 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by wp Pause Ads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲81 | 13.61 ▼0.76 | 1.75 ▼0.33 | 43.73 ▼4.86 |
Dashboard /wp-admin | 2,244 ▲56 | 5.85 ▼0.05 | 99.38 ▼9.92 | 39.50 ▼2.25 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.06 ▲0.06 | 37.90 ▲0.65 | 35.93 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,543 ▲2 | 17.67 ▼0.53 | 622.63 ▼62.26 | 43.11 ▼12.57 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.20 ▼0.02 | 93.28 ▼23.58 | 43.63 ▼5.38 |
Format /wp-admin/edit-tags.php?taxonomy=format&post_type=wp_pause_ad | 1,269 | 2.13 | 25.75 | 28.92 |
Libellé /wp-admin/edit-tags.php?taxonomy=label&post_type=wp_pause_ad | 1,269 | 2.14 | 26.09 | 27.46 |
Wp Pause Ads /wp-admin/edit.php?post_type=wp_pause_ad | 1,088 | 1.93 | 30.47 | 28.78 |
Add New /wp-admin/post-new.php?post_type=wp_pause_ad | 2,324 | 7.79 | 186.78 | 62.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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: 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 trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pause-ads/wp-pause-ads.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
3 plugin tags: snippets, ads, adserver
wp-pause-ads/wp-pause-ads.php Passed 13 tests
"wp Pause Ads" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
met à disposition un shortcode permettant d'inclure des publicités "ciblées"
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected106 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 12 | 106 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected