84% simple-streamwood

Code Review | Simple StreamWood

WordPress plugin Simple StreamWood scored84%from 54 tests.

About plugin

  • Plugin page: simple-streamwood
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 9, 2018
  • Latest release: Oct 9, 2018
  • Number of updates: 3
  • Update frequency: every 10.0 days
  • Top authors: hayk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /447 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Simple StreamWood
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.55 ▼0.31
Dashboard /wp-admin3.32 ▼0.0345.82 ▼19.72
Posts /wp-admin/edit.php3.37 ▲0.0144.23 ▼3.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.68 ▼1.56
Media Library /wp-admin/upload.php3.24 ▲0.0138.88 ▲3.00
Simple StreamWood /wp-admin/options-general.php?page=simple-streamwood3.2131.99

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
simple_streamwood_domain_key
simple_streamwood_key
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple StreamWood
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.25 ▼0.311.55 ▼0.2541.59 ▲5.33
Dashboard /wp-admin2,199 ▲245.56 ▼0.1484.87 ▼19.8139.59 ▼4.43
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0135.85 ▲1.5437.89 ▲6.48
Add New Post /wp-admin/post-new.php1,531 ▲323.11 ▼0.16631.15 ▼34.3153.44 ▼4.72
Media Library /wp-admin/upload.php1,401 ▲44.21 ▼0.0399.89 ▲4.7344.76 ▲0.65
Simple StreamWood /wp-admin/options-general.php?page=simple-streamwood8102.0023.4523.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-streamwood/options.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-streamwood/simple-streamwood.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: streamwood, javascript

simple-streamwood/simple-streamwood.php 92% from 13 tests

The main PHP script in "Simple StreamWood" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2212679

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin