Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.40ms] Passed 4 tests
This is a short check of server-side resources used by Jetpack Popular Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.11 ▼1.31 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.08 ▼6.90 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.67 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.60 ▼7.87 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.86 ▼1.32 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_jpp_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Jetpack Popular Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼0.93 | 1.65 ▼0.11 | 42.28 ▼0.39 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼1.06 | 109.72 ▼5.98 | 39.39 ▼2.11 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 39.09 ▼2.26 | 35.17 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 23.46 ▲5.33 | 692.44 ▲65.72 | 69.69 ▲15.86 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.25 ▲0.06 | 102.03 ▲2.62 | 50.40 ▲6.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_jpp_widget
- can_compress_scripts
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/jetpack-popular-posts/jetpack-popular-posts.php:14
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: popular posts, view, popular, widget, category...
jetpack-popular-posts/jetpack-popular-posts.php Passed 13 tests
Analyzing the main PHP file in "Jetpack Popular Posts" version 1.0.1
69 characters long description:
Using Jetpack stats, this widget will display the most popular posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin189 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 64 | 156 |
PO File | 1 | 25 | 51 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 44.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 55.56% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin