Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/tp-postviews-count-popular-posts-widgets/public/tp_pviews_functions.php+11
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.39ms] Passed 4 tests
An overview of server-side resources used by PostViews Count & Popular Posts Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.10 ▼35.90 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.31 ▼48.03 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.84 ▼46.27 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.25 ▼91.35 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.51 ▼28.74 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_tp_pviews_show_popular |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
PostViews Count & Popular Posts Widgets: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲46 | 13.23 ▼1.42 | 1.72 ▼0.26 | 39.13 ▼7.49 |
Dashboard /wp-admin | 2,236 ▲30 | 5.99 ▲0.11 | 102.85 ▼5.54 | 75.14 ▲27.85 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.02 ▲0.02 | 39.45 ▲3.32 | 34.79 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,562 ▲14 | 18.29 ▼5.02 | 705.20 ▲18.98 | 67.83 ▲2.93 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.15 ▼0.09 | 106.37 ▲0.29 | 80.37 ▲33.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/tp-postviews-count-popular-posts-widgets/public/tp_pviews_functions.php+11
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_tp_pviews_show_popular
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tp-postviews-count-popular-posts-widgets/public/tp_pviews_output.php:7
- > 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 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== PostViews Count & Popular Posts Widgets===
)
tp-postviews-count-popular-posts-widgets/tp_postviews.php 85% from 13 tests
"PostViews Count & Popular Posts Widgets" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tp-postviews-count-popular-posts-widgets.php" instead of "tp_postviews.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin455 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 158 | 51 | 382 |
CSS | 1 | 1 | 1 | 64 |
JavaScript | 1 | 0 | 7 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.53% |
Functions | 4 | |
▷ Named functions | 4 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/images/favicon.png | 1.12KB | 0.00KB | ▼ 100.00% |