Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.26ms] Passed 4 tests
This is a short check of server-side resources used by Traffic Post Page Views
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 24.38 ▼14.95 |
Dashboard /wp-admin | 3.48 ▲0.18 | 45.59 ▼1.07 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 49.41 ▲4.35 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 91.62 ▼0.33 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.75 ▲3.31 |
Traffic Post Page Views Admin Panel /wp-admin/options-general.php?page=addweb-traffic-post-page-views | 3.35 | 32.77 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_gd-analytic-top-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Traffic Post Page Views
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,428 ▼334 | 14.67 ▲0.37 | 0.63 ▼1.08 | 2.71 ▼42.36 |
Dashboard /wp-admin | 2,208 ▲31 | 5.64 ▲0.06 | 93.36 ▼7.14 | 38.47 ▼7.66 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.01 | 40.36 ▲1.78 | 34.75 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,535 ▲8 | 22.80 ▼0.24 | 601.74 ▼52.34 | 59.99 ▲17.46 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.28 ▲0.02 | 97.87 ▼3.21 | 44.29 ▲1.76 |
Traffic Post Page Views Admin Panel /wp-admin/options-general.php?page=addweb-traffic-post-page-views | 1,765 | 1.96 | 34.95 | 42.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_gd-analytic-top-posts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=addweb-traffic-post-page-views
- > Notice in wp-content/plugins/addweb-google-popular-post/traffic-post-page-views.php+370
Undefined index: tapp_clientid
- > GET request to /wp-admin/options-general.php?page=addweb-traffic-post-page-views
- > Notice in wp-content/plugins/addweb-google-popular-post/traffic-post-page-views.php+373
Undefined index: tapp_psecret
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/addweb-google-popular-post/inc/functions.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/addweb-google-popular-post/inc/functions.php:53
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
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
Please fix the following attributes:
- Donate link: Invalid URI found ("#")
- Requires php: The plugin version is formatted incorrectly
addweb-google-popular-post/traffic-post-page-views.php 85% from 13 tests
Analyzing the main PHP file in "Traffic Post Page Views" version 2.4.1
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("addweb-google-popular-post.php" instead of "traffic-post-page-views.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin6,124 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 451 | 81 | 2,765 |
CSS | 8 | 118 | 106 | 1,937 |
PHP | 2 | 253 | 43 | 735 |
SVG | 7 | 1 | 4 | 687 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/wewp-logo.png | 39.91KB | 20.18KB | ▼ 49.44% |
inc/css/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
inc/img/wewp-ad-plugin-400.png | 15.32KB | 8.89KB | ▼ 42.00% |
inc/img/addweb-logo.png | 11.75KB | 4.57KB | ▼ 61.12% |