Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.26MB] [CPU: ▲22.80ms] Passed 4 tests
Analyzing server-side resources used by Staatic - Static Site Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.59 ▲4.12 | 63.35 ▲18.61 |
Dashboard /wp-admin | 7.61 ▲4.30 | 70.48 ▲19.38 |
Posts /wp-admin/edit.php | 7.66 ▲4.30 | 78.04 ▲36.03 |
Add New Post /wp-admin/post-new.php | 10.20 ▲4.31 | 107.66 ▲17.19 |
Media Library /wp-admin/upload.php | 7.54 ▲4.30 | 68.10 ▲37.14 |
/wp-admin/admin.php?page=staatic-publication-results | 7.32 | 54.22 |
Settings /wp-admin/admin.php?page=staatic-settings | 7.57 | 54.02 |
/wp-admin/admin.php?page=staatic-publication-logs | 7.32 | 47.34 |
/wp-admin/admin.php?page=staatic-publication-logs-export | 7.32 | 61.74 |
/wp-admin/admin.php?page=staatic-test-request | 7.51 | 102.32 |
Staatic /wp-admin/admin.php?page=staatic | 7.32 | 49.54 |
/wp-admin/admin.php?page=staatic-publication-download | 7.32 | 49.36 |
/wp-admin/admin.php?page=staatic-publication-delete | 7.32 | 53.81 |
/wp-admin/admin.php?page=staatic-publish | 7.46 | 54.43 |
/wp-admin/admin.php?page=staatic-publication | 7.32 | 46.67 |
Server storage [IO: ▲4.74MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,487 new files
Database: 8 new tables, 12 new options
New tables |
---|
wp_staatic_publications |
wp_staatic_crawl_queue |
wp_staatic_known_urls |
wp_staatic_deployments |
wp_staatic_log_entries |
wp_staatic_results |
wp_staatic_results_deployment |
wp_staatic_builds |
New WordPress options |
---|
staatic_database_version |
staatic_current_publication_id |
staatic_active_publication_id |
can_compress_scripts |
widget_recent-posts |
staatic_test_request_status |
db_upgraded |
staatic_active_preview_publication_id |
staatic_latest_publication_id |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Staatic - Static Site Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲249 | 15.91 ▲1.68 | 1.73 ▲0.01 | 38.33 ▼5.11 |
Dashboard /wp-admin | 2,383 ▲203 | 7.45 ▲1.80 | 208.79 ▲114.74 | 42.78 ▲3.19 |
Posts /wp-admin/edit.php | 2,228 ▲128 | 6.25 ▲4.29 | 64.78 ▲27.68 | 35.34 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,724 ▲198 | 21.80 ▼1.45 | 591.59 ▼12.99 | 38.15 ▼16.13 |
Media Library /wp-admin/upload.php | 1,531 ▲137 | 8.25 ▲4.11 | 113.58 ▲10.43 | 40.36 ▼2.08 |
/wp-admin/admin.php?page=staatic-publication-results | 28 | 0.41 | 0.12 | 3.73 |
Settings /wp-admin/admin.php?page=staatic-settings | 1,081 | 5.80 | 54.86 | 29.97 |
/wp-admin/admin.php?page=staatic-publication-logs | 28 | 0.41 | 0.10 | 4.09 |
/wp-admin/admin.php?page=staatic-publication-logs-export | 28 | 0.41 | 0.08 | 3.56 |
/wp-admin/admin.php?page=staatic-test-request | 928 | 5.88 | 47.77 | 27.13 |
Staatic /wp-admin/admin.php?page=staatic | 28 | 0.41 | 0.07 | 3.57 |
/wp-admin/admin.php?page=staatic-publication-download | 28 | 0.41 | 0.11 | 3.86 |
/wp-admin/admin.php?page=staatic-publication-delete | 28 | 0.41 | 0.07 | 3.69 |
/wp-admin/admin.php?page=staatic-publish | 803 | 6.21 | 34.28 | 19.64 |
/wp-admin/admin.php?page=staatic-publication | 28 | 0.41 | 0.06 | 2.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/staatic/vendor/masterminds/html5/bin/entities.php
- 881× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Staatic\\WordPress\\Module\\ModuleInterface' not found in wp-content/plugins/staatic/src/Module/Admin/ExtendSiteHealth.php:14
- > PHP Fatal error
Uncaught Error: Class 'Staatic\\Vendor\\Symfony\\Component\\DependencyInjection\\Loader\\FileLoader' not found in wp-content/plugins/staatic/vendor/symfony/dependency-injection/Loader/XmlFileLoader.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Staatic\\Vendor\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/staatic/vendor/guzzlehttp/psr7/src/FnStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Staatic\\Vendor\\Ramsey\\Uuid\\Builder\\UuidBuilderInterface' not found in wp-content/plugins/staatic/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Staatic\\Vendor\\Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/staatic/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:18
- > PHP Fatal error
Uncaught Error: Class 'Staatic\\WordPress\\Migrations\\AbstractMigration' not found in wp-content/plugins/staatic/migrations/v1.0.3-5-delete-stale-deployment-results.php:10
- > PHP Fatal error
Uncaught Error: Class 'Staatic\\WordPress\\Setting\\AbstractSetting' not found in wp-content/plugins/staatic/src/Module/Deployer/FilesystemDeployer/RetainPathsSetting.php:9
- > PHP Fatal error
Uncaught Error: Class 'Staatic\\WordPress\\Migrations\\AbstractMigration' not found in wp-content/plugins/staatic/migrations/v1.4.4-beta3-create-index-on-results-sha1.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Staatic\\Vendor\\Symfony\\Component\\DependencyInjection\\LazyProxy\\Instantiator\\InstantiatorInterface' not found in wp-content/plugins/staatic/vendor/symfony/dependency-injection/LazyProxy/Instantiator/LazyServiceInstantiator.php:9
- > PHP Fatal error
Uncaught Error: Class 'Staatic\\Vendor\\Ramsey\\Collection\\AbstractSet' not found in wp-content/plugins/staatic/vendor/ramsey/collection/src/Set.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=staatic-publication-results
- > Network (severe)
wp-admin/admin.php?page=staatic-publication-results - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=staatic-publication-logs
- > Network (severe)
wp-admin/admin.php?page=staatic-publication-logs - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=staatic-publication-logs-export
- > Network (severe)
wp-admin/admin.php?page=staatic-publication-logs-export - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=staatic
- > Network (severe)
wp-admin/admin.php?page=staatic - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=staatic-publication-download
- > Network (severe)
wp-admin/admin.php?page=staatic-publication-download - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=staatic-publication-delete
- > Network (severe)
wp-admin/admin.php?page=staatic-publication-delete - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=staatic-publication
- > Network (severe)
wp-admin/admin.php?page=staatic-publication - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: static site, security, fast, cdn, caching...
staatic/staatic.php Passed 13 tests
This is the main PHP file of "Staatic - Static Site Generator" version 1.6.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
102 characters long description:
Staatic for WordPress allows you to generate a highly optimized static version of your WordPress site.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected96,710 lines of code in 1,440 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,426 | 5,581 | 15,623 | 92,236 |
JSON | 4 | 0 | 0 | 3,170 |
PO File | 1 | 391 | 583 | 737 |
XSD | 1 | 33 | 1 | 362 |
Bourne Shell | 1 | 23 | 11 | 147 |
Markdown | 2 | 4 | 0 | 38 |
make | 1 | 4 | 0 | 14 |
YAML | 1 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 10.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 624.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 111.00 |
Code structure | ||
---|---|---|
Namespaces | 215 | |
Interfaces | 192 | |
Traits | 61 | |
Classes | 1,110 | |
▷ Abstract classes | 42 | 3.78% |
▷ Concrete classes | 1,068 | 96.22% |
▷ Final classes | 520 | 48.69% |
Methods | 8,183 | |
▷ Static methods | 771 | 9.42% |
▷ Public methods | 6,836 | 83.54% |
▷ Protected methods | 523 | 6.39% |
▷ Private methods | 824 | 10.07% |
Functions | 680 | |
▷ Named functions | 207 | 30.44% |
▷ Anonymous functions | 473 | 69.56% |
Constants | 659 | |
▷ Global constants | 19 | 2.88% |
▷ Class constants | 640 | 97.12% |
▷ Public constants | 515 | 80.47% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin