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.04MB] [CPU: ▼6.13ms] Passed 4 tests
An overview of server-side resources used by RunPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.85 ▼4.45 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.94 ▲2.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.74 ▼0.18 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.45 ▼19.00 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.54 ▼0.89 |
RunPress /wp-admin/admin.php?page=runpress | 3.25 | 39.22 |
Shortcode Generator /wp-admin/admin.php?page=runpress-shortcode-generator | 3.25 | 37.38 |
Local DB /wp-admin/admin.php?page=runpress-local-db | 3.25 | 37.43 |
Donate! /wp-admin/admin.php?page=runpress-donate | 3.25 | 36.74 |
Donations Leaderbord /wp-admin/admin.php?page=runpress-donations-leaderboard | 3.23 | 34.38 |
Sync /wp-admin/admin.php?page=runpress-sync | 3.25 | 38.53 |
Server storage [IO: ▲3.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 82 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_runpress_db |
New WordPress options |
---|
runpress_option_db_version |
widget_runpress_widget |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
RunPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 14.44 ▲0.16 | 4.97 ▲2.79 | 39.07 ▲1.06 |
Dashboard /wp-admin | 2,297 ▲120 | 5.68 ▲0.03 | 88.91 ▼25.94 | 41.13 ▼14.48 |
Posts /wp-admin/edit.php | 2,156 ▲53 | 2.05 ▲0.06 | 41.35 ▲4.48 | 38.06 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 23.69 ▲0.62 | 623.26 ▼68.06 | 58.97 ▲3.96 |
Media Library /wp-admin/upload.php | 1,455 ▲58 | 4.19 ▲0.01 | 99.64 ▼1.91 | 42.46 ▼0.49 |
RunPress /wp-admin/admin.php?page=runpress | 1,110 | 2.02 | 23.92 | 33.33 |
Shortcode Generator /wp-admin/admin.php?page=runpress-shortcode-generator | 1,435 | 1.77 | 28.77 | 44.39 |
Local DB /wp-admin/admin.php?page=runpress-local-db | 1,182 | 2.48 | 45.70 | 37.20 |
Donate! /wp-admin/admin.php?page=runpress-donate | 1,003 | 2.09 | 25.94 | 27.33 |
Donations Leaderbord /wp-admin/admin.php?page=runpress-donations-leaderboard | 944 | 2.00 | 23.00 | 27.73 |
Sync /wp-admin/admin.php?page=runpress-sync | 1,055 | 2.06 | 28.82 | 30.16 |
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 were found after uninstall: 8 options
- theysaidso_admin_options
- widget_runpress_widget
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- runpress_option_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/runpress/runpress.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
imagejpeg() expects parameter 1 to be resource, bool given in wp-content/plugins/runpress/inc/img/showjpg.php on line 21
- > PHP Notice
Undefined index: text in wp-content/plugins/runpress/inc/img/showjpg.php on line 3
- > PHP Warning
imagesx() expects parameter 1 to be resource, bool given in wp-content/plugins/runpress/inc/img/showjpg.php on line 11
- > PHP Warning
imagecreatefromjpeg(): Filename cannot be empty in wp-content/plugins/runpress/inc/img/showjpg.php on line 4
- > PHP Notice
Undefined index: image in wp-content/plugins/runpress/inc/img/showjpg.php on line 2
- > PHP Warning
imagedestroy() expects parameter 1 to be resource, bool given in wp-content/plugins/runpress/inc/img/showjpg.php on line 22
- > PHP Warning
imagecolorallocate() expects parameter 1 to be resource, bool given in wp-content/plugins/runpress/inc/img/showjpg.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/runpress/inc/widget/runpress-widget.php:43
- > PHP Warning
imagesy() expects parameter 1 to be resource, bool given in wp-content/plugins/runpress/inc/img/showjpg.php on line 12
- > PHP Warning
imagestring() expects parameter 1 to be resource, bool given in wp-content/plugins/runpress/inc/img/showjpg.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #7 (Single activity in a post/page) image missing
- Tags: There are too many tags (20 tag instead of maximum 10)
runpress/runpress.php 92% from 13 tests
Analyzing the main PHP file in "RunPress" version 1.4.2
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
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
Success! There were no dangerous files found in this plugin10,578 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,985 | 7,014 | 6,498 |
PHP | 5 | 246 | 719 | 2,327 |
CSS | 5 | 30 | 79 | 1,100 |
PO File | 1 | 203 | 214 | 597 |
JSON | 3 | 0 | 0 | 56 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 82.35% |
▷ Protected methods | 3 | 8.82% |
▷ Private methods | 3 | 8.82% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/flags/Denmark.png | 36.00KB | 16.99KB | ▼ 52.81% |
inc/images/sort_asc.png | 1.09KB | 0.25KB | ▼ 77.46% |
inc/img/flags/Germany.png | 43.48KB | 16.25KB | ▼ 62.64% |
inc/img/red_hook.png | 28.81KB | 10.14KB | ▼ 64.80% |
inc/img/glass_numbers/glass_numbers_4.png | 3.44KB | 2.52KB | ▼ 26.71% |