84% sparkloop

Code Review | SparkLoop

WordPress plugin SparkLoop scored84%from 54 tests.

About plugin

  • Plugin page: sparkloop
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Nov 4, 2021
  • Latest release: Jan 24, 2022
  • Number of updates: 4
  • Update frequency: every 20.5 days
  • Top authors: sparkloop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /798 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by SparkLoop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.50 ▼2.35
Dashboard /wp-admin3.32 ▼0.0354.37 ▼16.67
Posts /wp-admin/edit.php3.37 ▲0.0150.98 ▼1.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.02 ▼10.40
Media Library /wp-admin/upload.php3.24 ▲0.0138.96 ▲4.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for SparkLoop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.69 ▲0.161.82 ▲0.1844.69 ▼0.44
Dashboard /wp-admin2,209 ▲385.57 ▲0.0399.77 ▲9.2543.72 ▲0.12
Posts /wp-admin/edit.php2,111 ▲111.99 ▼0.0333.61 ▼1.2135.03 ▼1.86
Add New Post /wp-admin/post-new.php1,538 ▲1223.77 ▲0.62625.48 ▼40.4551.34 ▼1.71
Media Library /wp-admin/upload.php1,417 ▲204.20 ▲0.0298.80 ▼1.4450.24 ▲3.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sparkloop/sparkloop.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: referral, email, marketing

sparkloop/sparkloop.php Passed 13 tests

The main PHP script in "SparkLoop" version 1.0.1 is automatically included on every request by WordPress
60 characters long description:
A simple plugin to add the SparkLoop script to your website!

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 detected45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101245

PHP code Passed 2 tests

An short overview of 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.27
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin