Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.26MB] [CPU: ▲0.57ms] Passed 4 tests
A check of server-side resources used by PhastPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.73 ▲2.27 | 35.19 ▼7.50 |
Dashboard /wp-admin | 5.75 ▲2.41 | 56.75 ▼7.15 |
Posts /wp-admin/edit.php | 5.76 ▲2.40 | 56.75 ▲11.06 |
Add New Post /wp-admin/post-new.php | 7.85 ▲1.96 | 104.52 ▲5.87 |
Media Library /wp-admin/upload.php | 5.75 ▲2.52 | 48.26 ▲13.58 |
PhastPress /wp-admin/options-general.php?page=phast-press | 6.05 | 344.23 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- There were 4 files (232.83KB) illegally modified outside of "wp-content/plugins/phastpress/" and "wp-content/uploads/"
- (new file) wp-content/cache/phast.6ff3d0158d1372de0be98fdeb5a143ee.1000/index.html
- (new file) wp-content/cache/phast.6ff3d0158d1372de0be98fdeb5a143ee.1000/cache.sqlite3-journal
- (new file) wp-content/cache/phast.6ff3d0158d1372de0be98fdeb5a143ee.1000/service-config-svtQ4ezAJzL0wGab
- (new file) wp-content/cache/phast.6ff3d0158d1372de0be98fdeb5a143ee.1000/cache.sqlite3
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
phastpress2-settings |
phastpress_1.43 |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for PhastPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲229 | 14.61 ▲0.26 | 34.79 ▲33.15 | 41.77 ▼1.84 |
Dashboard /wp-admin | 2,223 ▲52 | 5.59 ▲0.00 | 93.89 ▲2.84 | 41.10 ▲1.72 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.03 ▲0.03 | 38.32 ▼2.50 | 35.48 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,532 ▼2 | 23.05 ▼0.10 | 653.43 ▲52.05 | 54.03 ▼3.63 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.15 ▼0.00 | 98.86 ▲3.54 | 43.84 ▲1.51 |
PhastPress /wp-admin/options-general.php?page=phast-press | 1,338 | 4.89 | 141.11 | 52.16 |
Uninstaller [IO: ▲0.23MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- phastpress2-settings
- can_compress_scripts
- db_upgraded
- phastpress_1.43
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Kibo\\Phast\\HTTP\\Client' not found in wp-content/plugins/phastpress/classes/RequestsHTTPClient.php:10
- > PHP Fatal error
Uncaught Error: Class 'Kibo\\PhastPlugins\\PhastPress\\ServiceSDKImplementation' not found in wp-content/plugins/phastpress/classes/PluginHostImplementation.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Kibo\\PhastPlugins\\SDK\\Security\\PhastUser' not found in wp-content/plugins/phastpress/classes/PhastUserImplementation.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/phastpress/bootstrap.php:36
- > PHP Fatal error
Uncaught Error: Interface 'Kibo\\PhastPlugins\\SDK\\Caching\\CacheRootCandidatesProvider' not found in wp-content/plugins/phastpress/classes/CacheRootCandidatesProviderImplementation.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Kibo\\PhastPlugins\\SDK\\ServiceHost' not found in wp-content/plugins/phastpress/classes/ServiceSDKImplementation.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Kibo\\PhastPlugins\\SDK\\HostURLs' not found in wp-content/plugins/phastpress/classes/HostURLsImplementation.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Kibo\\PhastPlugins\\SDK\\Configuration\\KeyValueStore' not found in wp-content/plugins/phastpress/classes/KeyValueStoreImplementation.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Kibo\\PhastPlugins\\SDK\\Security\onceChecker' not found in wp-content/plugins/phastpress/classes/NonceCheckerImplementation.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Kibo\\PhastPlugins\\SDK\\AdminPanel\\InstallNoticeRenderer' not found in wp-content/plugins/phastpress/classes/InstallNoticeRendererImplementation.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
phastpress/phastpress.php Passed 13 tests
"PhastPress" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
PhastPress automatically optimizes your site for the best possible Google PageSpeed Insights score.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected8,291 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 376 | 2,592 | 8,275 |
JavaScript | 2 | 2 | 1 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 76 | |
Interfaces | 23 | |
Traits | 8 | |
Classes | 195 | |
▷ Abstract classes | 4 | 2.05% |
▷ Concrete classes | 191 | 97.95% |
▷ Final classes | 0 | 0.00% |
Methods | 850 | |
▷ Static methods | 89 | 10.47% |
▷ Public methods | 601 | 70.71% |
▷ Protected methods | 55 | 6.47% |
▷ Private methods | 194 | 22.82% |
Functions | 91 | |
▷ Named functions | 10 | 10.99% |
▷ Anonymous functions | 81 | 89.01% |
Constants | 53 | |
▷ Global constants | 5 | 9.43% |
▷ Class constants | 48 | 90.57% |
▷ Public constants | 48 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 6.54KB | 3.69KB | ▼ 43.59% |