Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.78ms] Passed 4 tests
Server-side resources used by Popularis Extra
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.51 ▲1.42 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.06 ▼2.94 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.06 ▲5.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 83.91 ▼15.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.76 ▲1.99 |
Server storage [IO: ▲0.84MB] [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: 50 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_popularis_about_me |
widget_popularis-extra-extended-recent-posts |
widget_popularis-extra-popular-posts |
widget_popularis_social |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Popularis Extra
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.31 ▼1.45 | 4.68 ▲2.97 | 42.67 ▲3.85 |
Dashboard /wp-admin | 2,203 ▲14 | 5.84 ▲0.88 | 109.29 ▼9.80 | 38.35 ▼4.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 39.37 ▼0.34 | 36.72 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.33 ▲0.71 | 619.79 ▼16.26 | 69.46 ▲13.75 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.28 ▲0.06 | 94.01 ▼9.54 | 41.03 ▼2.28 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 10 options
- can_compress_scripts
- widget_recent-posts
- widget_popularis-extra-popular-posts
- theysaidso_admin_options
- widget_popularis_social
- widget_recent-comments
- widget_theysaidso_widget
- widget_popularis_about_me
- widget_popularis-extra-extended-recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popularis-extra/library/extra-widgets/popular-posts-widget.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popularis-extra/library/extra-widgets/recent-posts-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: import, widgets, demo, shortcodes, elementor
popularis-extra/popularis-extra.php 92% from 13 tests
The primary PHP file in "Popularis Extra" version 1.2.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected9,123 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,121 | 1,181 | 6,038 |
CSS | 10 | 267 | 16 | 2,077 |
JavaScript | 7 | 304 | 155 | 1,008 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 31.77 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 165 | |
▷ Static methods | 21 | 12.73% |
▷ Public methods | 149 | 90.30% |
▷ Protected methods | 10 | 6.06% |
▷ Private methods | 6 | 3.64% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.24MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/notify.png | 57.58KB | 15.50KB | ▼ 73.09% |
includes/wizard/assets/img/start.png | 59.89KB | 19.51KB | ▼ 67.42% |
includes/wizard/assets/img/end.png | 77.11KB | 14.79KB | ▼ 80.82% |
img/popularis-logo.png | 2.08KB | 1.51KB | ▼ 27.33% |
img/popularis-business.png | 47.71KB | 13.60KB | ▼ 71.49% |