Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.34ms] Passed 4 tests
This is a short check of server-side resources used by Hug Post View Counter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.42 ▲1.52 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.43 ▼2.42 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.50 ▼3.58 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.35 ▼26.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.95 ▼1.22 |
HPVC /wp-admin/options-general.php?page=hpvc | 3.25 | 34.98 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Hug Post View Counter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.64 ▼0.74 | 1.64 ▼0.69 | 40.15 ▼5.81 |
Dashboard /wp-admin | 2,222 ▲19 | 5.83 ▼0.22 | 98.84 ▼11.01 | 38.64 ▼4.68 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.00 | 36.76 ▲0.24 | 33.44 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,550 ▲9 | 23.14 ▲4.81 | 667.14 ▼5.52 | 53.04 ▼15.42 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▼0.07 | 102.35 ▼7.13 | 46.21 ▲1.27 |
HPVC /wp-admin/options-general.php?page=hpvc | 988 | 2.05 | 27.20 | 29.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hug-post-view-counter/hug-post-view-counter.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
Attributes that need to be fixed:
- Requires at least: Invalid version format
hug-post-view-counter/hug-post-view-counter.php Passed 13 tests
The main file in "Hug Post View Counter" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
90 characters long description:
A plugin that records post views and contains functions to easily list posts by popularity
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,045 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 189 | 616 | 968 |
CSS | 1 | 1 | 0 | 40 |
JavaScript | 1 | 0 | 2 | 37 |
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.41 |
Average class complexity | 70.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 60.38% |
▷ Protected methods | 21 | 39.62% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
There are no PNG files in this plugin