Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.62ms] Passed 4 tests
Server-side resources used by WP-xPerts Popular Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.65 ▼3.52 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.89 ▼5.43 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.42 ▼2.91 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 97.76 ▼2.63 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.02 ▲1.24 |
Popular Posts /wp-admin/options-general.php?page=wx-popular-posts | 3.30 | 32.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_wx_create_pp_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-xPerts Popular Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.24 ▼1.12 | 1.68 ▼0.53 | 41.64 ▼3.52 |
Dashboard /wp-admin | 2,215 ▲30 | 4.87 ▼0.03 | 107.80 ▲2.87 | 40.23 ▼2.08 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.05 ▼0.01 | 38.95 ▼3.00 | 35.84 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 17.66 ▼0.00 | 648.11 ▼17.13 | 54.36 ▼4.27 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.23 ▲0.04 | 92.12 ▼7.32 | 42.51 ▼1.18 |
Popular Posts /wp-admin/options-general.php?page=wx-popular-posts | 990 | 2.03 | 29.03 | 38.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_wx_create_pp_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wx-popular-posts
- > Notice in wp-content/plugins/wp-xperts-popular-posts/inc/wx-pp-settings.php+177
Trying to access array offset on value of type bool
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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
5 plugin tags: popular posts widget, popular posts, wp most popular posts widget, most viewed posts widget, most viewed posts
wp-xperts-popular-posts/popular-posts.php 77% from 13 tests
The principal PHP file in "WP-xPerts Popular Posts" v. 1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wp-xperts-popular-posts.php" instead of "popular-posts.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
No dangerous file extensions were detected571 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 74 | 31 | 500 |
CSS | 2 | 12 | 0 | 71 |
JavaScript | 1 | 0 | 3 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin