Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼291.31ms] Passed 4 tests
Server-side resources used by AdsMiddle
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 59.89 ▲2.58 |
Dashboard /wp-admin | 3.41 ▲0.01 | 42.99 ▲5.46 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 44.63 ▲3.32 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 96.77 ▼1,176.60 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 34.43 ▲6.88 |
AdsMiddle /wp-admin/options-general.php?page=wp_addmidle | 3.29 | 22.75 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for AdsMiddle
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.26 ▼0.35 | 5.75 ▼0.00 | 2.28 ▼0.10 |
Dashboard /wp-admin | 2,897 ▲36 | 6.15 ▼0.02 | 115.89 ▼14.31 | 156.05 ▼11.52 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.00 | 61.00 ▼0.06 | 139.90 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,784 ▲32 | 22.89 ▲1.62 | 408.75 ▼29.59 | 157.21 ▼2.88 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.53 ▲0.02 | 137.70 ▲1.83 | 179.49 ▼21.01 |
AdsMiddle /wp-admin/options-general.php?page=wp_addmidle | 1,060 | 2.38 | 52.87 | 99.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/adsmiddle/adsmiddle.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (screenshot-4.png)
- Screenshots: These screenshots lack descriptions #3, #4 in adsmiddle/assets to your readme.txt
adsmiddle/adsmiddle.php Passed 13 tests
The entry point to "AdsMiddle" version 1.0 is a PHP file that has certain tags in its header comment area
53 characters long description:
Simple plugin para agregar adsense al medio del post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin94 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 11 | 94 |
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.20 |
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 | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin