Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Jetpack_Post_Views is deprecated since version 4.3.0! Use __construct() instead.
Server metrics [RAM: ▼1.57MB] [CPU: ▼52.45ms] Passed 4 tests
An overview of server-side resources used by Jetpack Post Views
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.42 ▼1.04 | 14.59 ▼33.70 |
Dashboard /wp-admin | 2.44 ▼0.90 | 12.08 ▼53.88 |
Posts /wp-admin/edit.php | 2.44 ▼0.91 | 15.25 ▼34.52 |
Add New Post /wp-admin/post-new.php | 2.44 ▼3.44 | 12.98 ▼87.71 |
Media Library /wp-admin/upload.php | 2.44 ▼0.79 | 14.28 ▼20.78 |
Jetpack Post Views /wp-admin/options-general.php?page=jetpack_post_views | 2.44 | 12.10 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_jetpack-post-views-widget |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
jetpack-post-views_version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Jetpack Post Views
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.05 | 1.63 ▼0.29 | 38.52 ▼9.16 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.02 | 94.31 ▲1.63 | 44.41 ▲1.59 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.94 ▼0.04 | 42.99 ▲5.35 | 36.14 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.15 ▼0.14 | 676.39 ▲19.32 | 55.17 ▲1.66 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.04 | 103.86 ▼2.05 | 41.68 ▼4.66 |
Jetpack Post Views /wp-admin/options-general.php?page=jetpack_post_views | 991 | 2.03 | 26.23 | 43.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Jetpack_Post_Views is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_jetpack-post-views-widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=jetpack_post_views
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Jetpack_Post_Views is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=jetpack_post_views
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=jetpack_post_views
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/jetpack-post-views/jetpack-post-views.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
2 plugin tags: jetpack, post views
jetpack-post-views/jetpack-post-views.php 92% from 13 tests
Analyzing the main PHP file in "Jetpack Post Views" version 1.1.0
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 236 characters long)
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
There were no executable files found in this plugin793 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 166 | 137 | 793 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 88.00 |
▷ Minimum class complexity | 88.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 5.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected