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.18MB] [CPU: ▼321.42ms] Passed 4 tests
Analyzing server-side resources used by Advert Manage
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 79.83 ▲31.05 |
Dashboard /wp-admin | 3.58 ▲0.17 | 39.05 ▼30.29 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 43.01 ▲4.84 |
Add New Post /wp-admin/post-new.php | 5.83 ▼1.13 | 109.21 ▼1,265.09 |
Media Library /wp-admin/upload.php | 3.51 ▲0.22 | 32.07 ▲4.87 |
/wp-admin/admin.php?page=am-location | 3.41 | 25.38 |
Locations /wp-admin/admin.php?page=am-locations | 3.43 | 50.58 |
Settings /wp-admin/admin.php?page=am-settings | 3.43 | 24.50 |
Adverts /wp-admin/admin.php?page=ad-manager | 3.43 | 25.87 |
New Advert /wp-admin/admin.php?page=am-advert | 3.52 | 25.98 |
Server storage [IO: ▲0.65MB] [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: 68 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_admg_adverts |
New WordPress options |
---|
admg_content_permission |
admg_intra_post_min_length |
admg_settings_permission |
widget_admg_location_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Advert Manage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,908 ▲154 | 15.91 ▲0.25 | 6.40 ▼0.22 | 36.45 ▲33.48 |
Dashboard /wp-admin | 2,918 ▲57 | 6.12 ▼0.03 | 120.76 ▼21.59 | 149.99 ▼17.08 |
Posts /wp-admin/edit.php | 2,731 ▲61 | 3.24 ▼0.01 | 64.93 ▼15.28 | 141.36 ▼28.44 |
Add New Post /wp-admin/post-new.php | 1,807 ▲172 | 24.74 ▲6.20 | 327.53 ▼133.43 | 200.18 ▲37.26 |
Media Library /wp-admin/upload.php | 1,739 ▲41 | 5.51 ▼0.01 | 145.99 ▼2.12 | 193.83 ▼2.81 |
/wp-admin/admin.php?page=am-location | 1,118 | 2.50 | 55.65 | 88.41 |
Locations /wp-admin/admin.php?page=am-locations | 1,141 | 2.73 | 53.98 | 127.16 |
Settings /wp-admin/admin.php?page=am-settings | 1,171 | 2.48 | 55.91 | 185.43 |
Adverts /wp-admin/admin.php?page=ad-manager | 1,147 | 2.68 | 61.04 | 142.92 |
New Advert /wp-admin/admin.php?page=am-advert | 1,733 | 4.69 | 74.56 | 199.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 1 option
- widget_admg_location_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=am-advert
- > Notice in wp-content/plugins/ad-manage/admin/advert/advert.php+74
Undefined index: action
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ad-manage/admin/settings/settings.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== ad-manage ===
) - Screenshots: Add images for these screenshots: #1 (Creating an advert), #2 (All adverts are displayed in an easy to see list, just like posts), #3 (Set rules to determine whether your ad will be shown. Schedule it, limit it to a specific post / category), #4 (Choose where your post should be shown. Before the content, in the sidebar, etc)
ad-manage/ad-manager.php 85% from 13 tests
The entry point to "Advert Manage" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("ad-manage.php" instead of "ad-manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,986 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 669 | 171 | 2,107 |
JavaScript | 8 | 127 | 40 | 361 |
Sass | 8 | 52 | 1 | 314 |
CSS | 2 | 5 | 0 | 204 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 26.09% |
Functions | 113 | |
▷ Named functions | 71 | 62.83% |
▷ Anonymous functions | 42 | 37.17% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.26MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 35.60KB | 9.96KB | ▼ 72.04% |
assets/screenshot-3.png | 36.86KB | 10.89KB | ▼ 70.45% |
assets/screenshot-1.png | 147.02KB | 39.33KB | ▼ 73.25% |
assets/screenshot-4.png | 43.39KB | 12.42KB | ▼ 71.39% |