Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/post-popularity-chart-widget-lite/post-popularity-chart-widget.php+37
Methods with the same name as their class will not be constructors in a future version of PHP; post_popularity_graph has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼56.44ms] Passed 4 tests
Analyzing server-side resources used by Post Popularity Chart Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.87 ▼36.82 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.37 ▼42.75 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.00 ▼46.67 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.94 ▼99.51 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.95 ▼30.03 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_post_popularity_graph |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_post_popularity_graph |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Post Popularity Chart Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.02 | 1.74 ▼0.26 | 47.11 ▲1.74 |
Dashboard /wp-admin | 2,192 ▲15 | 5.51 ▼0.13 | 86.76 ▼12.51 | 36.69 ▼7.48 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.01 ▼0.02 | 37.45 ▲0.21 | 42.55 ▲8.04 |
Add New Post /wp-admin/post-new.php | 1,537 ▲8 | 17.95 ▼5.34 | 668.56 ▼7.12 | 84.28 ▲32.77 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.31 ▲0.06 | 102.87 ▼12.19 | 44.30 ▼6.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/post-popularity-chart-widget-lite/post-popularity-chart-widget.php+37
Methods with the same name as their class will not be constructors in a future version of PHP; post_popularity_graph has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_post_popularity_graph
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-popularity-chart-widget-lite/post-popularity-chart-widget.php:13
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: pupularity, chart, pupular, diagram, widget...
post-popularity-chart-widget-lite/post-popularity-chart-widget.php 92% from 13 tests
This is the main PHP file of "Post Popularity Chart Widget" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-popularity-chart-widget-lite.php" instead of "post-popularity-chart-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin238 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 27 | 238 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 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