Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-posts-most-read/PMRposts.php+586
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼186.22ms] Passed 4 tests
Server-side resources used by Name: WP Posts Most Read
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 6.54 ▼27.86 |
Dashboard /wp-admin | 1.76 ▼1.29 | 6.01 ▼40.79 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 6.22 ▼33.48 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 5.91 ▼642.75 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 6.89 ▼22.58 |
Posts Most Read /wp-admin/options-general.php?page=wp-postsmostread-option | 1.76 | 6.47 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_posts_most_read |
New WordPress options |
---|
wp-postsmostread-opt-view-last-reset |
widget_pmrpostswidget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Name: WP Posts Most Read
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲111 | 15.66 ▲0.13 | 10.43 ▼0.68 | 43.72 ▼2.77 |
Dashboard /wp-admin | 2,985 ▲54 | 5.92 ▼0.25 | 139.08 ▼66.41 | 118.94 ▲1.96 |
Posts /wp-admin/edit.php | 2,780 ▲41 | 2.72 ▼0.00 | 66.54 ▲1.25 | 89.82 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,701 ▲95 | 18.75 ▼0.08 | 392.81 ▲4.25 | 104.25 ▼5.46 |
Media Library /wp-admin/upload.php | 1,774 ▼33 | 4.99 ▼0.02 | 137.52 ▼14.16 | 132.17 ▲16.45 |
Posts Most Read /wp-admin/options-general.php?page=wp-postsmostread-option | 1,520 | 2.10 | 56.02 | 116.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-posts-most-read/PMRposts.php+586
Function create_function() is deprecated
- Zombie tables were found after uninstall: 1 table
- wp_posts_most_read
- Zombie WordPress options detected upon uninstall: 1 option
- widget_pmrpostswidget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-postsmostread-option
- > Deprecated in wp-content/plugins/wp-posts-most-read/PMRposts.php+586
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=wp-postsmostread-option
- > Notice in wp-content/plugins/wp-posts-most-read/PMRposts.php+528
Undefined variable: control_ops
- > GET request to /wp-admin/options-general.php?page=wp-postsmostread-option
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in PMRpostsWidget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-postsmostread-option
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=wp-postsmostread-option
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/options-general.php?page=wp-postsmostread-option
- > Notice in wp-includes/wp-db.php+1323
Undefined offset: 0
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-postsmostread-option
- > User deprecated in wp-includes/functions.php+5495
get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-posts-most-read/PMRposts.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-posts-most-read/inc/PMRlisting.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-posts-most-read/inc/PMRoptions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_reset_query() in wp-content/plugins/wp-posts-most-read/inc/PMRdisplay_admin.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_reset_query() in wp-content/plugins/wp-posts-most-read/inc/PMRdisplay.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Name: WP Posts Most Read ===
)
wp-posts-most-read/PMRposts.php 92% from 13 tests
The main PHP file in "Name: WP Posts Most Read " ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-posts-most-read.php" instead of "PMRposts.php")
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
Everything looks great! No dangerous files found in this plugin1,285 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 512 | 30 | 579 |
PO File | 3 | 260 | 479 | 498 |
CSS | 2 | 5 | 0 | 198 |
JavaScript | 1 | 7 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-google-plus.png | 1.66KB | 1.52KB | ▼ 8.02% |