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 cannot be installed
- > Deprecated in wp-content/plugins/dpp-popular-post-widget/dpp_popularpost.php+302
Function create_function() is deprecated
Server metrics [RAM: ▼1.83MB] [CPU: ▼62.21ms] Passed 4 tests
Analyzing server-side resources used by Wordpress Popular Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 4.69 ▼44.21 |
Dashboard /wp-admin | 2.19 ▼1.16 | 6.13 ▼61.03 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 6.10 ▼50.43 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 5.66 ▼93.15 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.14 ▼29.73 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_dpp_plugin |
db_upgraded |
theysaidso_admin_options |
dppRegisterPostType |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Popular Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.71 ▼0.84 | 1.97 ▼0.04 | 41.85 ▼0.46 |
Dashboard /wp-admin | 2,224 ▲21 | 4.79 ▼0.11 | 97.77 ▼7.91 | 40.84 ▼0.21 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.05 | 39.45 ▼2.80 | 33.81 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,547 ▲16 | 23.50 ▲0.39 | 671.52 ▼6.72 | 55.67 ▲2.80 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.02 | 101.79 ▲4.78 | 47.82 ▲1.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/dpp-popular-post-widget/dpp_popularpost.php+302
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- widget_dpp_plugin
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
dpp-popular-post-widget/dpp_popularpost.php 92% from 13 tests
The main file in "Wordpress Popular Post" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dpp-popular-post-widget.php" instead of "dpp_popularpost.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin353 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 12 | 263 |
CSS | 1 | 7 | 1 | 90 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 6.67 |
▷ 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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/view_icon.png | 0.53KB | 0.35KB | ▼ 34.92% |
image/comment_icon.png | 0.64KB | 0.39KB | ▼ 39.79% |
image/calender_icon.png | 1.47KB | 0.87KB | ▼ 41.32% |