84% s2-animate-siteorigin-pagebuilder

Code Review | s2 reveal siteorigin

WordPress plugin s2 reveal siteorigin scored 84% from 54 tests.

About plugin

  • Plugin page: s2-animate-siteor...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.17+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 25, 2021
  • Latest release: May 29, 2022
  • Number of updates: 8
  • Update frequency: every 42.8 days
  • Top authors: Sebas2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by s2 reveal siteorigin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.45 ▼1.64
Dashboard /wp-admin3.33 ▲0.0341.90 ▼12.67
Posts /wp-admin/edit.php3.38 ▲0.0347.73 ▼2.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.04 ▼29.64
Media Library /wp-admin/upload.php3.25 ▲0.0235.59 ▼1.73

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

s2 reveal siteorigin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲17413.71 ▼0.568.13 ▲6.4840.50 ▲2.71
Dashboard /wp-admin2,206 ▲244.87 ▼1.0298.30 ▼2.2335.92 ▼6.86
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0739.93 ▼0.1234.52 ▼0.63
Add New Post /wp-admin/post-new.php1,539 ▲623.59 ▲0.49641.84 ▼45.8357.71 ▲2.34
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.04105.73 ▲1.3743.58 ▼2.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s2-animate-siteorigin-pagebuilder/s2-animate-siteorigin-pagebuilder.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt might help

s2-animate-siteorigin-pagebuilder/s2-animate-siteorigin-pagebuilder.php Passed 13 tests

"s2 reveal siteorigin" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
With a few simple statements enable anmation for SiteOrigin PageBuilder

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
Everything looks great! No dangerous files found in this plugin97 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171778
JavaScript20319

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin