Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.86MB] [CPU: ▼275.74ms] Passed 4 tests
Analyzing server-side resources used by Wordpress Adverts Plugin - Adverts Click Tracker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.22 | 84.76 ▲36.86 |
Dashboard /wp-admin | 3.51 ▲0.10 | 67.45 ▲34.46 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 70.50 ▲29.96 |
Add New Post /wp-admin/post-new.php | 3.29 ▼3.68 | 55.78 ▼1,204.23 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 68.75 ▲40.11 |
Category - PRO /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker-Category | 3.36 | 59.92 |
Settings /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker | 3.33 | 51.44 |
Statistics /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker-Stats | 3.36 | 55.12 |
New Advert /wp-admin/post-new.php?post_type=webd_adverts | 3.28 | 56.36 |
All Adverts /wp-admin/edit.php?post_type=webd_adverts | 3.50 | 69.43 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: 2 new tables, no new options
New tables |
---|
wp_advert_clicks |
wp_adverts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress Adverts Plugin - Adverts Click Tracker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,317 ▲563 | 18.56 ▲2.61 | 11.64 ▲4.98 | 3.02 ▲0.57 |
Dashboard /wp-admin | 3,294 ▲433 | 7.62 ▲1.45 | 151.14 ▲18.56 | 253.29 ▲94.58 |
Posts /wp-admin/edit.php | 3,115 ▲458 | 5.01 ▲1.77 | 85.26 ▲21.14 | 259.75 ▲118.56 |
Add New Post /wp-admin/post-new.php | 1,793 ▲103 | 20.25 ▲0.10 | 412.94 ▲17.16 | 169.78 ▲4.27 |
Media Library /wp-admin/upload.php | 1,900 ▲199 | 6.01 ▲0.49 | 108.64 ▼25.84 | 256.40 ▲71.40 |
Category - PRO /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker-Category | 1,429 | 4.76 | 75.05 | 150.07 |
Settings /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker | 2,486 | 13.06 | 312.61 | 190.54 |
Statistics /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker-Stats | 1,440 | 4.96 | 73.46 | 154.69 |
New Advert /wp-admin/post-new.php?post_type=webd_adverts | 3,024 | 10.00 | 175.82 | 218.38 |
All Adverts /wp-admin/edit.php?post_type=webd_adverts | 1,796 | 5.07 | 78.10 | 152.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_advert_clicks
- wp_adverts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker
- > Notice in wp-content/plugins/adverts-click-tracker/class-admin.php+251
Undefined index: tab
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webd_adverts
- > Notice in wp-content/plugins/adverts-click-tracker/class-admin.php+369
Undefined index: AdvertsClickTrackerdesc
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webd_adverts
- > Notice in wp-content/plugins/adverts-click-tracker/class-admin.php+395
Trying to get property 'ID' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webd_adverts
- > Notice in wp-content/plugins/adverts-click-tracker/class-admin.php+375
Undefined index: AdvertsClickTrackerurl
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=webd_adverts
- > Notice in wp-content/plugins/adverts-click-tracker/class-admin.php+379
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=webd_adverts
- > Notice in wp-content/plugins/adverts-click-tracker/class-admin.php+379
Undefined index: AdvertsClickTrackerexpdate
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #4 in adverts-click-tracker/assets to your readme.txt
adverts-click-tracker/adverts-click-tracker.php Passed 13 tests
The main PHP file in "Wordpress Adverts Plugin - Adverts Click Tracker" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
138 characters long description:
Create and display classified adverts anywhere on your WordPress website with a shortcode, click tracking feature - check the statistics.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,910 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 103 | 62 | 1,574 |
SVG | 1 | 0 | 0 | 685 |
PHP | 2 | 112 | 23 | 624 |
JavaScript | 2 | 12 | 1 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/adverts-click-tracker.png | 36.85KB | 15.89KB | ▼ 56.88% |
images/webdeveloping.png | 30.41KB | 16.21KB | ▼ 46.68% |
images/adverts-click-tracker-pro.png | 26.83KB | 12.61KB | ▼ 52.99% |