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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼12.38ms] Passed 4 tests
Analyzing server-side resources used by Awesome Post Views Counter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.79 | 50.13 ▲9.87 |
Dashboard /wp-admin | 4.10 ▲0.75 | 52.19 ▼13.50 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 50.64 ▲8.02 |
Add New Post /wp-admin/post-new.php | 3.90 ▼1.99 | 41.19 ▼46.14 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 36.51 ▲2.11 |
Post Views Counter /wp-admin/options-general.php?page=post-views-counter | 3.92 | 34.07 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_post_views |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_post_views_counter_list_widget |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Awesome Post Views Counter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 14.97 ▲0.58 | 8.22 ▲6.31 | 43.24 ▼0.21 |
Dashboard /wp-admin | 2,270 ▲79 | 5.89 ▲1.00 | 168.06 ▲65.36 | 41.12 ▲2.23 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.08 ▲0.10 | 47.12 ▲9.66 | 38.47 ▲7.70 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 17.46 ▼5.61 | 667.77 ▼29.98 | 55.39 ▲2.90 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.19 ▼0.04 | 95.92 ▼33.44 | 43.11 ▼7.01 |
Post Views Counter /wp-admin/options-general.php?page=post-views-counter | 1,392 | 1.88 | 33.45 | 49.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_post_views
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_post_views_counter_list_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/awesome-post-views-counter/includes/ajax.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Plugin Name: Please specify the plugin name on the first line (
=== awesome-post-views-counter ===
)
awesome-post-views-counter/post-views-counter.php 85% from 13 tests
The main file in "Awesome Post Views Counter" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awesome-post-views-counter.php" instead of "post-views-counter.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin4,008 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 765 | 1,076 | 3,236 |
CSS | 3 | 13 | 10 | 487 |
JavaScript | 6 | 69 | 50 | 285 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 39.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 129 | |
▷ Static methods | 1 | 0.78% |
▷ Public methods | 118 | 91.47% |
▷ Protected methods | 1 | 0.78% |
▷ Private methods | 10 | 7.75% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-dfactory.png | 2.92KB | 1.92KB | ▼ 34.20% |