10% really-static

Code Review | Really Static

WordPress plugin Really Static scored10%from 54 tests.

About plugin

  • Plugin page: really-static
  • Plugin version: 0.31
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.0
  • WordPress version: 6.3.1
  • First release: Mar 8, 2009
  • Latest release: Sep 5, 2014
  • Number of updates: 154
  • Update frequency: every 13.0 days
  • Top authors: eriksef (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

80+ active /431,229 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/really-static/main.php+534
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.11ms] Passed 4 tests

This is a short check of server-side resources used by Really Static
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.32 ▼4.95
Dashboard /wp-admin3.31 ▲0.0062.06 ▲7.59
Posts /wp-admin/edit.php3.36 ▲0.0048.51 ▼2.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.90 ▼6.94
Media Library /wp-admin/upload.php3.23 ▲0.0037.22 ▲2.38

Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Really Static
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▲0.051.66 ▼0.0340.84 ▼6.26
Dashboard /wp-admin2,198 ▲245.59 ▼0.0683.69 ▼22.0540.77 ▼4.61
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0234.59 ▼3.6037.76 ▲2.84
Add New Post /wp-admin/post-new.php1,526 ▼223.61 ▲0.59689.42 ▲1.4357.35 ▲1.39
Media Library /wp-admin/upload.php1,397 ▼64.15 ▼0.03101.24 ▼9.3446.72 ▼1.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined index: pos in wp-content/plugins/really-static/php/123.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/really-static/php/ftp.php:3
    • > PHP Notice
      Undefined index: strid2 in wp-content/plugins/really-static/php/configupdate.php on line 142
    • > PHP Warning
      Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP) in wp-content/plugins/really-static/php/multiadmin.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/really-static/php/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function RS_LOG() in wp-content/plugins/really-static/php/errorid.php:8
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/really-static/php/errorid.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/really-static/rewrite.php:2
    • > PHP Warning
      require_once(Math/BigInteger.php): failed to open stream: No such file or directory in wp-content/plugins/really-static/php/sftp/SSH1.php on line 77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/really-static/php/multiadmin.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 25 tag instead of maximum 10
  • Plugin Name: You should set the name of your plugin on the first line ( === really-static === )
Please take inspiration from this readme.txt

really-static/main.php 92% from 13 tests

The main PHP script in "Really Static" version 0.31 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("really-static.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin13,501 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP292,9786,06111,519
PO File97018341,815
JavaScript21022165
HTML2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity80.57
▷ Minimum class complexity13.00
▷ Maximum class complexity325.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods303
▷ Static methods00.00%
▷ Public methods303100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions236
▷ Named functions236100.00%
▷ Anonymous functions00.00%
Constants109
▷ Global constants109100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin