84% steel

Code Review | Steel

WordPress plugin Steel scored84%from 54 tests.

About plugin

  • Plugin page: steel
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Oct 13, 2015
  • Number of updates: 55
  • Update frequency: every 13.6 days
  • Top authors: starverte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,793 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▲0.45ms] Passed 4 tests

An overview of server-side resources used by Steel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2446.02 ▲0.31
Dashboard /wp-admin3.61 ▲0.3161.42 ▲3.73
Posts /wp-admin/edit.php3.67 ▲0.3157.76 ▲7.52
Add New Post /wp-admin/post-new.php6.13 ▲0.2489.87 ▼9.78
Media Library /wp-admin/upload.php3.45 ▲0.2245.12 ▲10.42

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_steel-widget-random-quote
widget_theysaidso_widget
widget_steel-widget-link
widget_steel-widget-list-group
widget_steel-widget-button

Browser metrics Passed 4 tests

A check of browser resources used by Steel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,088 ▲32716.42 ▲2.0516.82 ▲15.2453.22 ▲13.56
Dashboard /wp-admin2,371 ▲1936.30 ▲0.58115.54 ▲11.8841.42 ▲0.33
Posts /wp-admin/edit.php2,299 ▲1963.52 ▲1.5654.20 ▲16.5635.39 ▼4.16
Add New Post /wp-admin/post-new.php1,718 ▲19022.57 ▼0.66647.29 ▼41.9730.34 ▼28.45
Media Library /wp-admin/upload.php1,445 ▲424.36 ▲0.1584.49 ▼18.6446.31 ▲1.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_steel-widget-list-group
    • widget_steel-widget-button
    • widget_recent-posts
    • widget_steel-widget-random-quote
    • db_upgraded
    • theysaidso_admin_options
    • widget_steel-widget-link
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/steel/teams.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/steel/options.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/steel/shortcodes.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/steel/slides.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/steel/inc/broadcast-feed.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/steel/inc/class-walker-nav-menu-list-group.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/steel/inc/class-walker-nav-menu-list-group.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/steel/podcast.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/steel/inc/class-widget-button.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/steel/inc/class-widget-link.php:14

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 Passed 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
7 plugin tags: shortcodes, teams, carousel, bootstrap, quotes...

steel/steel.php Passed 13 tests

Analyzing the main PHP file in "Steel" version 1.3.0
137 characters long description:
Steel brings the power of Matchstix to a simple user interface, making any site’s impact spread like wildfire. No programming required.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected13,946 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS825328,783
PHP194009863,038
JavaScript76102011,787
SVG200301
JSON10037

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.56
▷ Minimum class complexity5.00
▷ Maximum class complexity14.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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