72% simply-static

Code Review | Simply Static

WordPress plugin Simply Static scored72%from 54 tests.

About plugin

  • Plugin page: simply-static
  • Plugin version: 3.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.4
  • WordPress version: 6.3.1
  • First release: Sep 22, 2015
  • Latest release: Nov 29, 2023
  • Number of updates: 186
  • Update frequency: every 16.1 days
  • Top authors: patrickposner (53.76%)codeofconduct (45.7%)simplystatic (1.61%)

Code review

54 tests

User reviews

159 reviews

Install metrics

40,000+ active /735,124 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /6.50 ▲3.0461.78 ▲21.32
Dashboard /wp-admin6.21 ▲2.9071.24 ▲22.86
Posts /wp-admin/edit.php6.26 ▲2.9060.81 ▲10.28
Add New Post /wp-admin/post-new.php8.75 ▲2.86111.24 ▲13.27
Media Library /wp-admin/upload.php6.07 ▲2.8451.07 ▲16.36
Settings /wp-admin/admin.php?page=simply-static-settings6.0551.86
Generate /wp-admin/admin.php?page=simply-static-generate6.0549.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3814.54 ▼0.221.69 ▼0.4643.06 ▼1.58
Dashboard /wp-admin2,215 ▲385.66 ▼0.0096.14 ▲0.0678.47 ▲37.13
Posts /wp-admin/edit.php2,141 ▲381.99 ▲0.0439.08 ▼4.0333.43 ▼6.81
Add New Post /wp-admin/post-new.php1,567 ▲3825.07 ▲1.90654.43 ▲39.12167.52 ▲114.80
Media Library /wp-admin/upload.php1,438 ▲384.12 ▼0.1195.47 ▼1.0267.11 ▲22.90
Settings /wp-admin/admin.php?page=simply-static-settings1,25612.18304.1635.59
Generate /wp-admin/admin.php?page=simply-static-generate1,15612.14165.1175.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP3845,73214,85456,016
Markdown212,19936,032
JSON14002,510
PO File25537421,311
JavaScript2315426
YAML3270168
Bourne Shell12311147
SVG20058
XML271657
make14014
CSS1001

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 code0.48
Average class complexity25.97
▷ Minimum class complexity1.00
▷ Maximum class complexity1,498.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity117.00
Code structure
Namespaces19
Interfaces13
Traits0
Classes128
▷ Abstract classes118.59%
▷ Concrete classes11791.41%
▷ Final classes97.69%
Methods1,565
▷ Static methods49031.31%
▷ Public methods1,40689.84%
▷ Protected methods845.37%
▷ Private methods754.79%
Functions218
▷ Named functions15169.27%
▷ Anonymous functions6730.73%
Constants142
▷ Global constants3121.83%
▷ Class constants11178.17%
▷ Public constants10998.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