84% stepped-content

Code Review | Stepped Content - Showcase Stepped Content

WordPress plugin Stepped Content - Showcase Stepped Content scored84%from 54 tests.

About plugin

  • Plugin page: stepped-content
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 13, 2022
  • Latest release: Oct 3, 2023
  • Number of updates: 11
  • Update frequency: every 35.0 days
  • Top authors: charlescormier (90.91%)abuhayat (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /643 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.32ms] Passed 4 tests

Server-side resources used by Stepped Content - Showcase Stepped Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.18 ▼7.57
Dashboard /wp-admin3.35 ▲0.0051.01 ▼15.03
Posts /wp-admin/edit.php3.40 ▲0.0451.43 ▲1.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.39 ▼8.54
Media Library /wp-admin/upload.php3.27 ▲0.0441.45 ▲7.07

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Stepped Content - Showcase Stepped Content
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8913.57 ▼0.8611.00 ▲9.4039.94 ▲1.55
Dashboard /wp-admin2,195 ▲185.66 ▼0.0692.06 ▼6.2443.70 ▼0.26
Posts /wp-admin/edit.php2,100 ▼32.04 ▼0.0939.85 ▲0.8535.48 ▲0.22
Add New Post /wp-admin/post-new.php6,373 ▲4,83827.93 ▲4.61905.54 ▲236.1942.88 ▼12.72
Media Library /wp-admin/upload.php1,397 ▼64.20 ▲0.01113.66 ▲15.0647.51 ▲5.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant STP_PLUGIN_VERSION - assumed 'STP_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/stepped-content/dist/editor.asset.php on line 3
    • > PHP Warning
      Use of undefined constant STP_PLUGIN_VERSION - assumed 'STP_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/stepped-content/dist/script.asset.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stepped-content/child/child.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid version format
The official readme.txt might help

stepped-content/index.php 92% from 13 tests

The entry point to "Stepped Content - Showcase Stepped Content" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("stepped-content.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected319 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON400144
PO File1378096
PHP4211675
CSS3063
JavaScript2031

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.05
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin