Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.65ms] Passed 4 tests
A check of server-side resources used by SweepPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.17 ▼6.31 |
Dashboard /wp-admin | 3.43 ▲0.09 | 48.98 ▼15.63 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.25 ▲1.08 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 99.02 ▲2.26 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.96 ▲4.47 |
About /wp-admin/admin.php?page=sweeppress-about | 3.81 | 58.34 |
Tools /wp-admin/admin.php?page=sweeppress-tools | 3.39 | 32.58 |
Statistics /wp-admin/admin.php?page=sweeppress-statistics | 3.60 | 37.82 |
Sweepers List /wp-admin/admin.php?page=sweeppress-sweepers | 3.78 | 47.27 |
Sweep /wp-admin/admin.php?page=sweeppress-sweep | 3.92 | 149.91 |
Settings /wp-admin/admin.php?page=sweeppress-settings | 3.48 | 34.21 |
Overview /wp-admin/admin.php?page=sweeppress-dashboard | 3.84 | 42.68 |
Upgrade Pro /wp-admin/admin.php?page=sweeppress-jobs | 3.47 | 36.17 |
Server storage [IO: ▲4.10MB] [DB: ▲0.09MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 482 new files
Database: no new tables, 12 new options
New WordPress options |
---|
d4p_blog_sweeppress_info |
d4p_blog_sweeppress_core |
widget_recent-posts |
widget_recent-comments |
d4p_blog_sweeppress_settings |
d4p_blog_sweeppress_statistics |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
d4p_blog_sweeppress_sweepers |
... |
Browser metrics Passed 4 tests
Checking browser requirements for SweepPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲159 | 14.73 ▲0.38 | 1.76 ▼0.08 | 42.92 ▲1.81 |
Dashboard /wp-admin | 2,314 ▲137 | 5.69 ▲0.13 | 91.84 ▲1.58 | 40.21 ▼2.75 |
Posts /wp-admin/edit.php | 2,219 ▲119 | 2.05 ▲0.04 | 42.12 ▲2.23 | 38.48 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,590 ▲64 | 17.70 ▼0.20 | 697.11 ▲3.34 | 59.98 ▼0.89 |
Media Library /wp-admin/upload.php | 1,519 ▲119 | 4.27 ▲0.14 | 108.41 ▼3.99 | 47.35 ▼0.40 |
About /wp-admin/admin.php?page=sweeppress-about | 1,062 | 2.21 | 30.62 | 48.33 |
Tools /wp-admin/admin.php?page=sweeppress-tools | 1,262 | 2.21 | 33.20 | 44.12 |
Statistics /wp-admin/admin.php?page=sweeppress-statistics | 1,172 | 2.18 | 28.59 | 33.40 |
Sweepers List /wp-admin/admin.php?page=sweeppress-sweepers | 1,962 | 2.20 | 32.76 | 49.73 |
Sweep /wp-admin/admin.php?page=sweeppress-sweep | 3,565 | 2.19 | 31.83 | 51.12 |
Settings /wp-admin/admin.php?page=sweeppress-settings | 1,228 | 2.24 | 30.11 | 31.89 |
Overview /wp-admin/admin.php?page=sweeppress-dashboard | 1,812 | 2.19 | 40.40 | 79.19 |
Upgrade Pro /wp-admin/admin.php?page=sweeppress-jobs | 1,232 | 2.19 | 30.18 | 44.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 12 options
- d4p_blog_sweeppress_core
- theysaidso_admin_options
- can_compress_scripts
- d4p_blog_sweeppress_cache
- widget_theysaidso_widget
- widget_recent-posts
- d4p_blog_sweeppress_settings
- d4p_blog_sweeppress_statistics
- d4p_blog_sweeppress_sweepers
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=sweeppress-statistics
- > Notice in wp-content/plugins/sweeppress/core/basic/Settings.php+221
Undefined index: size
SRP 50% 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
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Dev4Press\\Plugin\\SweepPress\\Base\\Sweeper' not found in wp-content/plugins/sweeppress/core/base/sweep/ActionSchedulerActions.php:11
- > PHP Fatal error
Uncaught Error: Class 'Dev4Press\\Plugin\\SweepPress\\Base\\Sweep\\ActionSchedulerActions' not found in wp-content/plugins/sweeppress/core/sweeper/ActionSchedulerActionsFailed.php:7
- > PHP Fatal error
Uncaught Error: Class 'Dev4Press\\Plugin\\SweepPress\\Base\\Sweeper' not found in wp-content/plugins/sweeppress/core/sweeper/ActionSchedulerLog.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sweeppress/sweeppress.php:38
- > PHP Fatal error
Uncaught Error: Call to a member function is_no_size() on null in wp-content/plugins/sweeppress/forms/misc-sweep-single.php:6
- > PHP Notice
Undefined variable: sweeper in wp-content/plugins/sweeppress/forms/misc-sweep-single.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Dev4Press\\Plugin\\SweepPress\\Base\\Sweep\\ActionSchedulerActions' not found in wp-content/plugins/sweeppress/core/sweeper/ActionSchedulerActionsCanceled.php:7
- > PHP Fatal error
Uncaught Error: Class 'Dev4Press\\Plugin\\SweepPress\\Base\\Sweep\\ActionSchedulerActions' not found in wp-content/plugins/sweeppress/core/sweeper/ActionSchedulerActionsComplete.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in sweeppress/assets to your readme.txt
sweeppress/sweeppress.php Passed 13 tests
The entry point to "SweepPress" version 2.4.2 is a PHP file that has certain tags in its header comment area
119 characters long description:
Remove various old, unused, or obsolete data from the database, optimize the database for the best website performance.
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
Good job! No executable or dangerous file extensions detected43,288 lines of code in 435 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 268 | 5,931 | 2,934 | 23,153 |
CSS | 41 | 1,214 | 39 | 11,173 |
Sass | 54 | 887 | 26 | 5,170 |
JavaScript | 70 | 389 | 108 | 3,764 |
Markdown | 2 | 12 | 0 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 43 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 196 | |
▷ Abstract classes | 51 | 26.02% |
▷ Concrete classes | 145 | 73.98% |
▷ Final classes | 2 | 1.38% |
Methods | 1,694 | |
▷ Static methods | 262 | 15.47% |
▷ Public methods | 1,364 | 80.52% |
▷ Protected methods | 267 | 15.76% |
▷ Private methods | 63 | 3.72% |
Functions | 18 | |
▷ Named functions | 15 | 83.33% |
▷ Anonymous functions | 3 | 16.67% |
Constants | 55 | |
▷ Global constants | 8 | 14.55% |
▷ Class constants | 47 | 85.45% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.06MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
d4plib/resources/vendor/flags/img/flag_placeholder.png | 0.09KB | 0.09KB | 0.00% |
d4plib/resources/vendor/flags/img/flags_responsive.png | 54.14KB | 57.01KB | 0.00% |
d4plib/resources/gfx/buy_me_a_coffee.png | 7.73KB | 7.79KB | 0.00% |