Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.60MB] [CPU: ▲22.64ms] Passed 4 tests
Analyzing server-side resources used by Easy Post Views Count
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.51 ▲5.00 | 65.12 ▲22.69 |
Dashboard /wp-admin | 8.53 ▲5.18 | 78.14 ▲30.19 |
Posts /wp-admin/edit.php | 8.53 ▲5.13 | 75.78 ▲23.99 |
Add New Post /wp-admin/post-new.php | 9.03 ▲3.10 | 112.98 ▲15.39 |
Media Library /wp-admin/upload.php | 8.53 ▲5.26 | 64.28 ▲28.49 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.53 | 67.75 |
Server storage [IO: ▲3.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 212 new files
Database: no new tables, 12 new options
New WordPress options |
---|
epvc_settings |
fs_accounts |
db_upgraded |
fs_active_plugins |
epvs_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Post Views Count
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.35 ▼0.37 | 1.67 ▲0.09 | 31.86 ▼10.07 |
Dashboard /wp-admin | 2,215 ▲38 | 5.54 ▼0.04 | 86.21 ▼6.19 | 60.15 ▲20.96 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.03 ▲0.04 | 35.85 ▼1.20 | 32.02 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,707 ▲181 | 23.08 ▼0.31 | 712.18 ▲106.22 | 78.18 ▲25.84 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.21 ▼0.04 | 101.91 ▼1.93 | 79.53 ▲36.27 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,066 | 1.66 | 22.73 | 27.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/easy-post-views-count/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 12 options in the database
- widget_recent-posts
- db_upgraded
- fs_accounts
- fs_debug_mode
- fs_gdpr
- epvs_version
- can_compress_scripts
- theysaidso_admin_options
- epvc_settings
- widget_recent-comments
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: view, post count, custom post views, post views, easy post views count...
easy-post-views-count/easy-post-views-count.php 77% from 13 tests
"Easy Post Views Count" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected45,226 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 7,224 | 16,206 | 30,251 |
PO File | 10 | 5,550 | 6,667 | 12,010 |
Sass | 28 | 399 | 77 | 2,515 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 1 | 0 | 0 | 27 |
CSS | 12 | 0 | 0 | 15 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,142 | |
▷ Static methods | 173 | 15.15% |
▷ Public methods | 802 | 70.23% |
▷ Protected methods | 15 | 1.31% |
▷ Private methods | 325 | 28.46% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |