84% spark

Code Review | Spark

WordPress plugin Spark scored84%from 54 tests.

About plugin

  • Plugin page: spark
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 31, 2017
  • Latest release: Jan 29, 2018
  • Number of updates: 6
  • Update frequency: every 100.3 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /544 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by Spark
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.53 ▼3.71
Dashboard /wp-admin3.31 ▲0.0148.18 ▲4.36
Posts /wp-admin/edit.php3.36 ▲0.0044.84 ▼2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.02 ▼9.25
Media Library /wp-admin/upload.php3.24 ▲0.0031.53 ▼1.67

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Spark
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.091.94 ▲0.1144.69 ▲0.91
Dashboard /wp-admin2,203 ▲265.80 ▼0.1199.33 ▼5.9736.56 ▼5.88
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0337.99 ▼3.6531.67 ▼3.45
Add New Post /wp-admin/post-new.php1,535 ▲223.46 ▲0.17676.69 ▲43.8755.15 ▼2.35
Media Library /wp-admin/upload.php1,391 ▼04.16 ▲0.0096.76 ▼1.8041.91 ▼2.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/spark/spark.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: jump start, theme blvd, jason bobich

spark/spark.php Passed 13 tests

The principal PHP file in "Spark" v. 0.1.0 is loaded by WordPress automatically on each request
37 characters long description:
Tools to get started with Jump Start.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,005 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
XML1300925
PHP35313680

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin