Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.70ms] Passed 4 tests
An overview of server-side resources used by Computy view percent
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.36 ▼1.24 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.39 ▼6.07 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.58 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.79 ▼8.47 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 43.36 ▲9.66 |
View percent /wp-admin/options-general.php?page=vp-plugin-options | 3.24 | 33.57 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Computy view percent: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.10 ▼1.27 | 5.43 ▲3.77 | 44.37 ▲1.19 |
Dashboard /wp-admin | 2,209 ▲24 | 5.82 ▲0.00 | 95.88 ▼12.03 | 39.11 ▼6.27 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.02 ▼0.02 | 38.22 ▼0.47 | 36.70 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.13 ▲5.61 | 681.30 ▼27.50 | 52.92 ▼6.77 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.05 | 97.63 ▼17.74 | 43.15 ▼4.01 |
View percent /wp-admin/options-general.php?page=vp-plugin-options | 910 | 2.19 | 24.87 | 30.92 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: scroll line, percentage of reading, view percent
computy-view-percent/computy-view-percent.php Passed 13 tests
The main PHP script in "Computy view percent" version 1.5.1 is automatically included on every request by WordPress
94 characters long description:
The plugin does not require any settings and works automatically for standard WordPress posts.
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
Good job! No executable or dangerous file extensions detected179 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 18 | 152 |
SVG | 1 | 0 | 1 | 19 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/1.png | 42.71KB | 17.14KB | ▼ 59.88% |