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
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.53ms] Passed 4 tests
Analyzing server-side resources used by WP-PostViews Plus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.11 ▼0.17 |
Dashboard /wp-admin | 3.55 ▲0.25 | 50.36 ▲0.56 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 45.87 ▲1.05 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 95.04 ▲3.01 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 35.28 ▼3.56 |
PostViews+ /wp-admin/options-general.php?page=wp_postviews_plus | 3.44 | 33.51 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_postviews_plus |
New WordPress options |
---|
widget_views-plus |
PVP_version |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
PVP_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP-PostViews Plus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.29 | 1.87 ▼0.01 | 44.00 ▼6.22 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.06 | 98.08 ▼22.49 | 36.60 ▼8.58 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.01 | 37.69 ▲0.52 | 32.61 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.80 ▼5.61 | 597.76 ▼68.82 | 47.27 ▼6.51 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.29 ▲0.10 | 97.31 ▼20.10 | 40.71 ▼10.73 |
PostViews+ /wp-admin/options-general.php?page=wp_postviews_plus | 1,173 | 2.03 | 23.58 | 34.68 |
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
- Zombie tables were found after uninstall: 1 table
- wp_postviews_plus
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_views-plus
- PVP_options
- widget_recent-comments
- widget_recent-posts
- PVP_version
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 9× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-postviews-plus/widget/postviews_plus.php
- > /wp-content/plugins/wp-postviews-plus/class.wp-pvp.template.php
- > /wp-content/plugins/wp-postviews-plus/class.wp-pvp.admin.php
- > /wp-content/plugins/wp-postviews-plus/class.wp-pvp.php
- > /wp-content/plugins/wp-postviews-plus/class.wp-pvp.ajax.php
- > /wp-content/plugins/wp-postviews-plus/class.wp-pvp.widget.php
- > /wp-content/plugins/wp-postviews-plus/function.wp-pvp.template.php
- > /wp-content/plugins/wp-postviews-plus/class.wp-pvp.update.php
- > /wp-content/plugins/wp-postviews-plus/wp-postviews-plus.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: hits, postviews, bot, views, counter...
wp-postviews-plus/wp-postviews-plus.php Passed 13 tests
The main file in "WP-PostViews Plus" v. 2.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Enables You To Display How Many Times A Post Had Been Viewed By User Or Bot.
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
No dangerous file extensions were detected1,189 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 124 | 42 | 1,189 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.71 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 31 | 88.57% |
▷ Public methods | 31 | 88.57% |
▷ Protected methods | 3 | 8.57% |
▷ Private methods | 1 | 2.86% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin