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.17MB] [CPU: ▼19.53ms] Passed 4 tests
This is a short check of server-side resources used by Advert Manage
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 36.23 ▼0.99 |
Dashboard /wp-admin | 3.53 ▲0.18 | 46.52 ▼13.65 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.23 ▼2.82 |
Add New Post /wp-admin/post-new.php | 4.76 ▼1.13 | 44.50 ▼60.64 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 42.32 ▲6.60 |
/wp-admin/admin.php?page=am-location | 3.35 | 32.68 |
New Advert /wp-admin/admin.php?page=am-advert | 3.39 | 35.07 |
Adverts /wp-admin/admin.php?page=ad-manager | 3.37 | 32.34 |
Locations /wp-admin/admin.php?page=am-locations | 3.36 | 32.24 |
Settings /wp-admin/admin.php?page=am-settings | 3.36 | 28.86 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 68 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_admg_adverts |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
admg_content_permission |
widget_recent-posts |
widget_theysaidso_widget |
admg_intra_post_min_length |
db_upgraded |
admg_settings_permission |
can_compress_scripts |
widget_admg_location_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advert Manage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲114 | 14.38 ▲0.02 | 1.71 ▲0.11 | 52.76 ▲12.44 |
Dashboard /wp-admin | 2,226 ▲52 | 5.50 ▼0.03 | 81.64 ▼4.73 | 39.54 ▼4.76 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.96 ▼0.06 | 34.36 ▼6.80 | 34.89 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,618 ▲92 | 25.11 ▲1.64 | 512.61 ▼170.56 | 65.50 ▲15.86 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.27 ▼0.01 | 103.50 ▼1.78 | 46.63 ▼1.37 |
/wp-admin/admin.php?page=am-location | 865 | 2.06 | 26.45 | 24.78 |
New Advert /wp-admin/admin.php?page=am-advert | 1,280 | 3.11 | 44.29 | 32.23 |
Adverts /wp-admin/admin.php?page=ad-manager | 894 | 2.07 | 25.62 | 26.78 |
Locations /wp-admin/admin.php?page=am-locations | 907 | 2.03 | 23.02 | 29.02 |
Settings /wp-admin/admin.php?page=am-settings | 906 | 2.06 | 23.33 | 24.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- widget_admg_location_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors 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
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== ad-manage ===
) - Screenshots: These screenshots do not have images: #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 primary PHP file in "Advert Manage" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
- Main file name: It is recommended to name the main PHP file 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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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-3.png | 36.86KB | 10.89KB | ▼ 70.45% |
assets/screenshot-4.png | 43.39KB | 12.42KB | ▼ 71.39% |
assets/screenshot-2.png | 35.60KB | 9.96KB | ▼ 72.04% |
assets/screenshot-1.png | 147.02KB | 39.33KB | ▼ 73.25% |