90% sparkembed

Code Review | SparkEmbed

WordPress plugin SparkEmbedscored90%from 54 tests.

About plugin

  • Plugin page: sparkembed
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 7, 2017
  • Latest release: Jan 3, 2020
  • Number of updates: 4
  • Update frequency: every 196.8 days
  • Top authors: codecide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.95ms] Passed 4 tests

A check of server-side resources used by SparkEmbed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.01 ▲1.59
Dashboard /wp-admin3.35 ▲0.0549.94 ▲1.34
Posts /wp-admin/edit.php3.40 ▲0.0546.57 ▼1.18
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.05 ▼17.54
Media Library /wp-admin/upload.php3.28 ▲0.0535.85 ▲2.19

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

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

Browser metrics Passed 4 tests

A check of browser resources used by SparkEmbed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.38 ▼1.001.62 ▲0.0344.89 ▲4.25
Dashboard /wp-admin2,224 ▲364.87 ▼1.04110.34 ▲7.3241.85 ▼2.81
Posts /wp-admin/edit.php2,107 ▲182.04 ▲0.0434.02 ▼3.4234.93 ▼0.66
Add New Post /wp-admin/post-new.php1,548 ▲1023.33 ▼0.14669.13 ▲39.1954.55 ▼8.02
Media Library /wp-admin/upload.php1,403 ▲124.24 ▲0.0394.12 ▼1.7543.16 ▲0.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === SparkEmbed=== )
You can look at the official readme.txt

sparkembed/sparkembed.php Passed 13 tests

This is the main PHP file of "SparkEmbed" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Embed a Spark Chart satellite survey using a shortcode

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
No dangerous file extensions were detected198 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22655158
JavaScript21140

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin