Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.69ms] Passed 4 tests
Analyzing server-side resources used by StaticWP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.45 ▲0.30 |
Dashboard /wp-admin | 3.38 ▲0.07 | 54.73 ▼4.14 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.23 ▼2.01 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.07 | 89.95 ▼8.92 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 42.89 ▲7.60 |
StaticWP /wp-admin/tools.php?page=staticwp | 3.29 | 34.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Illegal file modification found: 1 file (0.32KB) outside of "wp-content/plugins/staticwp/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/staticwp-mu.php
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
staticwpversion |
Browser metrics Passed 4 tests
StaticWP: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲22 | 14.48 ▲1.26 | 1.77 ▲0.11 | 43.95 ▼3.72 |
Dashboard /wp-admin | 2,210 ▲4 | 5.86 ▲1.00 | 98.81 ▼10.89 | 37.59 ▼6.67 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 40.53 ▲4.04 | 33.88 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 18.32 ▼0.23 | 609.99 ▼35.25 | 55.14 ▲8.93 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.18 ▼0.02 | 98.78 ▲2.24 | 45.15 ▲2.41 |
StaticWP /wp-admin/tools.php?page=staticwp | 797 | 2.18 | 24.36 | 28.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/staticwp/templates/admin/preload-error.notice.php
- > /wp-content/plugins/staticwp/templates/admin/preload-success.notice.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'StaticWP\\Admin' not found in wp-content/plugins/staticwp/templates/admin/menu.include.php:14
- > PHP Fatal error
Uncaught Error: Class 'StaticWP\\View' not found in wp-content/plugins/staticwp/templates/admin/info.page.php:5
- > PHP Fatal error
Uncaught Error: Class 'StaticWP\\View' not found in wp-content/plugins/staticwp/templates/admin/preload.page.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: cache, static
staticwp/staticwp.php Passed 13 tests
The primary PHP file in "StaticWP" version 1.5.0 is used by WordPress to initiate all plugin functionality
38 characters long description:
Converts your blog into a static site.
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
Everything looks great! No dangerous files found in this plugin498 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 75 | 226 | 376 |
Markdown | 1 | 81 | 0 | 103 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 23 | |
▷ Static methods | 6 | 26.09% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 5 | 21.74% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 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
There are no PNG files in this plugin