Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.61ms] Passed 4 tests
An overview of server-side resources used by Advertisement Space
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 40.84 ▲1.98 |
Dashboard /wp-admin | 3.47 ▲0.17 | 47.13 ▼1.73 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 42.70 ▼5.29 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 87.58 ▲2.58 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 37.53 ▲7.69 |
All Advertisements /wp-admin/edit.php?post_type=advertisement | 3.44 | 36.03 |
Add Advertisement /wp-admin/post-new.php?post_type=advertisement | 3.45 | 50.44 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Advertisement Space
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.84 ▼0.78 | 10.09 ▲8.62 | 43.88 ▲3.80 |
Dashboard /wp-admin | 2,231 ▲50 | 5.63 ▼0.09 | 97.62 ▼1.90 | 46.73 ▲4.47 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.01 ▲0.04 | 34.76 ▼8.67 | 34.29 ▼4.09 |
Add New Post /wp-admin/post-new.php | 1,558 ▲21 | 23.12 ▲5.08 | 663.92 ▲28.78 | 59.20 ▼1.31 |
Media Library /wp-admin/upload.php | 1,437 ▲34 | 4.25 ▲0.07 | 96.34 ▼5.08 | 42.15 ▼2.97 |
All Advertisements /wp-admin/edit.php?post_type=advertisement | 1,097 | 1.91 | 31.09 | 30.80 |
Add Advertisement /wp-admin/post-new.php?post_type=advertisement | 1,989 | 3.72 | 64.34 | 32.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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 perform the action of outputting non-empty strings when accessed directly:
- > /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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Invalid URI found ("chandan")
advertisement-space/advertisement-space.php Passed 13 tests
"Advertisement Space" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
Plugin To place Advertisement in your wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were 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
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin