Benchmarks
Plugin footprint Passed 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.18MB] [CPU: ▼149.37ms] Passed 4 tests
A check of server-side resources used by Advertisement Space
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.17 | 34.10 ▲11.11 |
Dashboard /wp-admin | 3.29 ▲0.22 | 31.89 ▼12.97 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 32.30 ▲2.07 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.15 | 77.87 ▼585.60 |
Media Library /wp-admin/upload.php | 3.17 ▲0.16 | 23.46 ▼0.96 |
All Advertisements /wp-admin/edit.php?post_type=advertisement | 3.21 | 24.60 |
Add Advertisement /wp-admin/post-new.php?post_type=advertisement | 3.23 | 36.73 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advertisement Space
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,824 ▲223 | 16.41 ▲0.74 | 8.66 ▲3.59 | 75.01 ▼0.69 |
Dashboard /wp-admin | 2,975 ▲79 | 6.03 ▼0.12 | 114.93 ▼24.33 | 165.91 ▼11.22 |
Posts /wp-admin/edit.php | 2,786 ▲49 | 3.25 ▲0.03 | 64.77 ▲4.16 | 134.52 ▼3.91 |
Add New Post /wp-admin/post-new.php | 2,527 ▼1,232 | 16.64 ▼2.20 | 390.30 ▼58.90 | 154.14 ▼12.33 |
Media Library /wp-admin/upload.php | 1,797 ▲45 | 5.59 ▲0.06 | 147.01 ▲6.32 | 183.17 ▲0.28 |
All Advertisements /wp-admin/edit.php?post_type=advertisement | 1,473 | 3.16 | 61.54 | 113.65 |
Add Advertisement /wp-admin/post-new.php?post_type=advertisement | 2,706 | 5.54 | 95.79 | 147.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advertisement-space/admin/partials/advertisement-space-admin-display.php
- > /wp-content/plugins/advertisement-space/public/partials/advertisement-space-public-display.php
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
advertisement-space/advertisement-space.php Passed 13 tests
The principal PHP file in "Advertisement Space" v. 1.0.0 is loaded by WordPress automatically on each request
47 characters long description:
Plugin To place Advertisement in your wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected955 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 188 | 623 | 743 |
CSS | 2 | 21 | 25 | 152 |
JavaScript | 2 | 10 | 55 | 60 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 40 | 81.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 18.37% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin