Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▼3.52ms] Passed 4 tests
A check of server-side resources used by StaticPress2019
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 45.83 ▲8.59 |
Dashboard /wp-admin | 3.99 ▲0.65 | 49.98 ▼10.12 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 49.79 ▲0.38 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 84.63 ▼8.88 |
Media Library /wp-admin/upload.php | 3.85 ▲0.63 | 40.17 ▲4.55 |
StaticPress2019 /wp-admin/admin.php?page=static-press | 3.82 | 38.14 |
StaticPress2019 Options /wp-admin/admin.php?page=static-press-options | 3.84 | 33.45 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 69 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_urls |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
StaticPress2019: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.38 ▲0.03 | 1.69 ▼0.03 | 37.69 ▼3.58 |
Dashboard /wp-admin | 2,224 ▲47 | 5.52 ▼0.05 | 82.72 ▼3.10 | 78.91 ▲36.72 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.95 ▼0.07 | 36.99 ▲2.43 | 34.55 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,705 ▲179 | 22.52 ▼1.09 | 705.36 ▲52.68 | 49.61 ▲0.66 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.17 ▼0.05 | 94.21 ▼1.40 | 67.57 ▲23.10 |
StaticPress2019 /wp-admin/admin.php?page=static-press | 849 | 2.05 | 23.61 | 25.42 |
StaticPress2019 Options /wp-admin/admin.php?page=static-press-options | 885 | 2.00 | 23.60 | 23.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
- 118× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'STATIC_PRESS_PLUGIN_DIRincludes/response_processors/class-static-press-response-processor-404.php' (include_path='.:/usr/share/php') in wp-content/plugins/staticpress2019/includes/response_processors/class-static-press-response-processor-404-dump.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'STATIC_PRESS_PLUGIN_DIRincludes/models/class-static-press-model-url.php' (include_path='.:/usr/share/php') in wp-content/plugins/staticpress2019/includes/models/class-static-press-model-url-other.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'STATIC_PRESS_PLUGIN_DIRincludes/response_processors/class-static-press-response-processor.php' (include_path='.:/usr/share/php') in wp-content/plugins/staticpress2019/includes/response_processors/class-static-press-response-processor-200.php on line 10
- > PHP Warning
require_once(STATIC_PRESS_PLUGIN_DIRincludes/repositories/class-static-press-repository.php): failed to open stream: No such file or directory in wp-content/plugins/staticpress2019/includes/models/class-static-press-model-url-static-file.php on line 10
- > PHP Warning
require_once(STATIC_PRESS_PLUGIN_DIRincludes/repositories/class-static-press-repository.php): failed to open stream: No such file or directory in wp-content/plugins/staticpress2019/includes/models/class-static-press-model-url-front-page.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'STATIC_PRESS_PLUGIN_DIRincludes/models/class-static-press-model-url.php' (include_path='.:/usr/share/php') in wp-content/plugins/staticpress2019/includes/models/class-static-press-model-url-single.php on line 10
- > PHP Warning
require_once(STATIC_PRESS_PLUGIN_DIRincludes/class-static-press-adapter-option.php): failed to open stream: No such file or directory in wp-content/plugins/staticpress2019/includes/class-static-press-admin.php on line 10
- > PHP Warning
require_once(STATIC_PRESS_PLUGIN_DIRincludes/class-static-press-site-dependency.php): failed to open stream: No such file or directory in wp-content/plugins/staticpress2019/includes/content_filters/class-static-press-content-filter-replace-relative-uri.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'STATIC_PRESS_PLUGIN_DIRincludes/class-static-press-site-dependency.php' (include_path='.:/usr/share/php') in wp-content/plugins/staticpress2019/includes/content_filters/class-static-press-content-filter-replace-relative-uri.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'STATIC_PRESS_PLUGIN_DIRincludes/models/class-static-press-model-url-term.php' (include_path='.:/usr/share/php') in wp-content/plugins/staticpress2019/includes/factories/class-static-press-factory-model-url-term.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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
1 plugin tags: static
staticpress2019/plugin.php 85% from 13 tests
Analyzing the main PHP file in "StaticPress2019" version 0.8.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("staticpress2019.php" instead of "plugin.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 detected3,220 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 410 | 2,177 | 2,868 |
PO File | 4 | 56 | 63 | 182 |
JavaScript | 1 | 9 | 3 | 170 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 4 | 7.84% |
▷ Concrete classes | 47 | 92.16% |
▷ Final classes | 0 | 0.00% |
Methods | 248 | |
▷ Static methods | 33 | 13.31% |
▷ Public methods | 159 | 64.11% |
▷ Protected methods | 26 | 10.48% |
▷ Private methods | 63 | 25.40% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 39 | |
▷ Global constants | 3 | 7.69% |
▷ Class constants | 36 | 92.31% |
▷ Public constants | 36 | 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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rebuild32.png | 0.54KB | 0.65KB | 0.00% |
images/staticpress.png | 0.34KB | 0.20KB | ▼ 41.95% |
images/options32.png | 2.00KB | 1.62KB | ▼ 19.07% |
images/menuicon-splite.png | 0.46KB | 0.28KB | ▼ 37.77% |