Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲2.88MB] [CPU: ▲15.31ms] Passed 4 tests
An overview of server-side resources used by Simply Static
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.50 ▲3.04 | 61.78 ▲21.32 |
Dashboard /wp-admin | 6.21 ▲2.90 | 71.24 ▲22.86 |
Posts /wp-admin/edit.php | 6.26 ▲2.90 | 60.81 ▲10.28 |
Add New Post /wp-admin/post-new.php | 8.75 ▲2.86 | 111.24 ▲13.27 |
Media Library /wp-admin/upload.php | 6.07 ▲2.84 | 51.07 ▲16.36 |
Settings /wp-admin/admin.php?page=simply-static-settings | 6.05 | 51.86 |
Generate /wp-admin/admin.php?page=simply-static-generate | 6.05 | 49.09 |
Server storage [IO: ▲4.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 504 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_simply_static_pages |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
simply-static |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Simply Static
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲38 | 14.54 ▼0.22 | 1.69 ▼0.46 | 43.06 ▼1.58 |
Dashboard /wp-admin | 2,215 ▲38 | 5.66 ▼0.00 | 96.14 ▲0.06 | 78.47 ▲37.13 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 1.99 ▲0.04 | 39.08 ▼4.03 | 33.43 ▼6.81 |
Add New Post /wp-admin/post-new.php | 1,567 ▲38 | 25.07 ▲1.90 | 654.43 ▲39.12 | 167.52 ▲114.80 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.12 ▼0.11 | 95.47 ▼1.02 | 67.11 ▲22.90 |
Settings /wp-admin/admin.php?page=simply-static-settings | 1,256 | 12.18 | 304.16 | 35.59 |
Generate /wp-admin/admin.php?page=simply-static-generate | 1,156 | 12.14 | 165.11 | 75.94 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/tests/bootstrap.php
- 82× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/simply-static/vendor/symfony/css-selector/XPath/Extension/PseudoClassExtension.php:27
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/simply-static/vendor/symfony/css-selector/Node/PseudoNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/simply-static/vendor/symfony/css-selector/Parser/Shortcut/ElementParser.php:28
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleXmlDomNode' not found in wp-content/plugins/simply-static/vendor/voku/simple_html_dom/src/voku/helper/SimpleXmlDomNode.php:10
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/simply-static/vendor/symfony/css-selector/Node/CombinedSelectorNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'Simply_Static\\Task' not found in wp-content/plugins/simply-static/src/tasks/class-ss-transfer-files-locally-task.php:8
- > PHP Fatal error
Uncaught Error: Class 'Simply_Static\\Integration' not found in wp-content/plugins/simply-static/src/integrations/class-seopress-integration.php:5
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/simply-static/vendor/symfony/css-selector/Node/HashNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/simply-static/vendor/symfony/css-selector/Parser/Handler/NumberHandler.php:29
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/simply-static/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=simply-static-settings
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
wp.components.ClipboardButton is deprecated since version 5.8. Please use wp.compose.useCopyToClipboard instead.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: fast, secure, static website generator, static site, html
simply-static/simply-static.php Passed 13 tests
The main PHP file in "Simply Static" ver. 3.1.3 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
A static site generator to create fast and secure static versions of your WordPress website.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin66,740 lines of code in 433 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 384 | 5,732 | 14,854 | 56,016 |
Markdown | 21 | 2,199 | 3 | 6,032 |
JSON | 14 | 0 | 0 | 2,510 |
PO File | 2 | 553 | 742 | 1,311 |
JavaScript | 2 | 31 | 5 | 426 |
YAML | 3 | 27 | 0 | 168 |
Bourne Shell | 1 | 23 | 11 | 147 |
SVG | 2 | 0 | 0 | 58 |
XML | 2 | 7 | 16 | 57 |
make | 1 | 4 | 0 | 14 |
CSS | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,498)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 117)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 25.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,498.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 117.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 13 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 11 | 8.59% |
▷ Concrete classes | 117 | 91.41% |
▷ Final classes | 9 | 7.69% |
Methods | 1,565 | |
▷ Static methods | 490 | 31.31% |
▷ Public methods | 1,406 | 89.84% |
▷ Protected methods | 84 | 5.37% |
▷ Private methods | 75 | 4.79% |
Functions | 218 | |
▷ Named functions | 151 | 69.27% |
▷ Anonymous functions | 67 | 30.73% |
Constants | 142 | |
▷ Global constants | 31 | 21.83% |
▷ Class constants | 111 | 78.17% |
▷ Public constants | 109 | 98.20% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected