83% sitebuilder-dynamic-components

Code Review | SiteBuilder Dynamic Components

WordPress plugin SiteBuilder Dynamic Components scored 83% from 54 tests.

About plugin

  • Plugin page: sitebuilder-dynam...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 24, 2013
  • Latest release: May 24, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: sphoid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,245 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by SiteBuilder Dynamic Components
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.18 ▼7.98
Dashboard /wp-admin3.34 ▲0.0344.17 ▼7.49
Posts /wp-admin/edit.php3.45 ▲0.0943.46 ▼4.38
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.72 ▼14.16
Media Library /wp-admin/upload.php3.26 ▲0.0336.14 ▲1.99

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

SiteBuilder Dynamic Components: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.56 ▼0.9811.45 ▲9.7441.69 ▼6.60
Dashboard /wp-admin2,209 ▲215.88 ▼0.0298.81 ▼6.0940.55 ▼2.76
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0436.50 ▲2.2034.87 ▲0.44
Add New Post /wp-admin/post-new.php1,542 ▲718.40 ▼4.91594.91 ▼78.0655.84 ▼2.13
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0199.82 ▼6.4940.68 ▼5.76

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sitebuilder-dynamic-components/components.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/sitebuilder-dynamic-components/plugin.php:24
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sitebuilder-dynamic-components/plugin.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

sitebuilder-dynamic-components/plugin.php 92% from 13 tests

The primary PHP file in "SiteBuilder Dynamic Components" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sitebuilder-dynamic-components.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected205 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3102108121
JavaScript135048
Markdown124036

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected