Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▲0.40ms] Passed 4 tests
Analyzing server-side resources used by Podamibe Advertisement Management
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 39.31 ▼1.91 |
Dashboard /wp-admin | 3.60 ▲0.29 | 50.81 ▼6.65 |
Posts /wp-admin/edit.php | 3.72 ▲0.35 | 51.46 ▲2.46 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 93.33 ▲7.72 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 43.06 ▲9.68 |
Settings /wp-admin/edit.php?post_type=pads-mgmt&page=ads-mgmt-settings | 3.47 | 34.09 |
Add New /wp-admin/post-new.php?post_type=pads-mgmt | 3.65 | 52.30 |
All Advertise /wp-admin/edit.php?post_type=pads-mgmt | 3.57 | 40.15 |
Categories /wp-admin/edit-tags.php?taxonomy=padscat&post_type=pads-mgmt | 3.52 | 36.73 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Podamibe Advertisement Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲218 | 14.25 ▼0.28 | 7.54 ▲5.88 | 43.94 ▼4.00 |
Dashboard /wp-admin | 2,253 ▲76 | 5.36 ▼0.25 | 97.32 ▼9.71 | 69.46 ▲23.76 |
Posts /wp-admin/edit.php | 2,173 ▲76 | 2.43 ▲0.35 | 52.15 ▲14.54 | 38.16 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,591 ▲58 | 23.11 ▼0.17 | 673.24 ▼19.88 | 35.87 ▼25.54 |
Media Library /wp-admin/upload.php | 1,469 ▲72 | 4.87 ▲0.65 | 100.42 ▼0.38 | 77.32 ▲33.68 |
Settings /wp-admin/edit.php?post_type=pads-mgmt&page=ads-mgmt-settings | 1,712 | 3.10 | 59.26 | 31.06 |
Add New /wp-admin/post-new.php?post_type=pads-mgmt | 2,594 | 7.92 | 206.53 | 118.49 |
All Advertise /wp-admin/edit.php?post_type=pads-mgmt | 1,152 | 2.31 | 40.19 | 31.00 |
Categories /wp-admin/edit-tags.php?taxonomy=padscat&post_type=pads-mgmt | 1,350 | 2.20 | 36.69 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pads-mgmt&page=ads-mgmt-settings
- > Warning in wp-content/plugins/podamibe-advertisement-management/inc/backend/includes/class-pam-main-page.php+55
Use of undefined constant SFWA_TEXT_DOMAIN - assumed 'SFWA_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
SRP 0% 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
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/podamibe-advertisement-management/advertisement-management.php
- > /wp-content/plugins/podamibe-advertisement-management/inc/backend/class-pam-how-to-use.php
- > /wp-content/plugins/podamibe-advertisement-management/inc/backend/activation.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/podamibe-advertisement-management/inc/frontend/dynamic-style.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/podamibe-advertisement-management/inc/backend/includes/padm-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
podamibe-advertisement-management/advertisement-management.php 85% from 13 tests
The main PHP script in "Podamibe Advertisement Management" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("podamibe-advertisement-management.php" instead of "advertisement-management.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin7,078 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,126 | 335 | 4,815 |
PHP | 12 | 189 | 257 | 1,237 |
CSS | 5 | 118 | 45 | 1,013 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 24.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 6.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.33% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pam-icons.png | 21.20KB | 1.13KB | ▼ 94.67% |
images/logo_ads.png | 19.68KB | 8.07KB | ▼ 58.96% |
images/pam-set-icons.png | 21.85KB | 1.43KB | ▼ 93.47% |