Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.47MB] [CPU: ▼11.68ms] Passed 4 tests
Analyzing server-side resources used by Wordpress Adverts Plugin - Adverts Click Tracker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 44.70 ▼0.51 |
Dashboard /wp-admin | 3.55 ▲0.21 | 57.74 ▼4.82 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 55.89 ▲12.89 |
Add New Post /wp-admin/post-new.php | 3.33 ▼2.56 | 41.14 ▼48.72 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 43.36 ▲7.34 |
Statistics /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker-Stats | 3.41 | 43.85 |
Settings /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker | 3.38 | 36.82 |
All Adverts /wp-admin/edit.php?post_type=webd_adverts | 3.48 | 59.27 |
New Advert /wp-admin/post-new.php?post_type=webd_adverts | 3.33 | 36.93 |
Category - PRO /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker-Category | 3.41 | 44.30 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_advert_clicks |
wp_adverts |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Wordpress Adverts Plugin - Adverts Click Tracker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,171 ▲410 | 15.28 ▲0.70 | 4.95 ▲3.26 | 37.67 ▼0.40 |
Dashboard /wp-admin | 2,470 ▲289 | 6.51 ▲0.83 | 119.04 ▲24.53 | 123.10 ▲80.40 |
Posts /wp-admin/edit.php | 2,403 ▲324 | 3.63 ▲1.59 | 51.71 ▲18.98 | 104.60 ▲72.02 |
Add New Post /wp-admin/post-new.php | 1,651 ▲123 | 23.16 ▲0.06 | 658.10 ▼41.49 | 37.13 ▼23.97 |
Media Library /wp-admin/upload.php | 1,552 ▲149 | 4.43 ▲0.24 | 87.50 ▼15.94 | 89.18 ▲44.11 |
Statistics /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker-Stats | 1,131 | 3.31 | 40.34 | 71.42 |
Settings /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker | 1,731 | 10.25 | 293.01 | 63.85 |
All Adverts /wp-admin/edit.php?post_type=webd_adverts | 1,370 | 3.62 | 48.41 | 71.83 |
New Advert /wp-admin/post-new.php?post_type=webd_adverts | 2,324 | 7.42 | 146.93 | 144.43 |
Category - PRO /wp-admin/edit.php?post_type=webd_adverts&page=adverts-click-tracker-Category | 1,126 | 3.28 | 41.98 | 80.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_advert_clicks
- wp_adverts
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
Please fix the following attributes:
- Screenshots: A description for screenshot #4 is required 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 | Executable files are not allowed as they can serve as attack vectors
Success! There were 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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-pro.png | 26.83KB | 12.61KB | ▼ 52.99% |
images/adverts-click-tracker.png | 36.85KB | 15.89KB | ▼ 56.88% |
images/webdeveloping.png | 30.41KB | 16.21KB | ▼ 46.68% |