Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.49ms] Passed 4 tests
Server-side resources used by Insert Ads On Post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.16 ▼6.11 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.66 ▼1.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.79 ▼4.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.05 ▼21.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.55 ▲3.42 |
Insert Ads On Post /wp-admin/options-general.php?page=insert-ads-on-post | 3.20 | 33.63 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Insert Ads On Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.66 ▼0.96 | 1.71 ▼0.44 | 45.92 ▼0.42 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼0.07 | 106.83 ▼0.84 | 36.94 ▼7.62 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 34.73 ▼3.67 | 30.47 ▼4.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.24 ▲0.17 | 652.18 ▲61.23 | 56.31 ▲5.28 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▼0.05 | 97.46 ▼6.56 | 45.88 ▲2.08 |
Insert Ads On Post /wp-admin/options-general.php?page=insert-ads-on-post | 964 | 2.03 | 25.54 | 40.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/insert-ads-on-post/insert-ads-on-post.php:44
- > 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
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
9 plugin tags: ads, money, banner, javascript, html...
insert-ads-on-post/insert-ads-on-post.php Passed 13 tests
"Insert Ads On Post" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
Insert adsense inside post content and page content. Start Insert Ads On Post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin120 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 26 | 120 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/faq.png | 0.66KB | 0.66KB | ▼ 1.18% |