74% embed-ispring

Code Review | iSpring Embedder

WordPress plugin iSpring Embedder scored74%from 54 tests.

About plugin

  • Plugin page: embed-ispring
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: May 3, 2018
  • Latest release: May 3, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: harshsoni_w3 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,641 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by iSpring Embedder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0133.74 ▼2.78
Dashboard /wp-admin3.31 ▲0.0145.23 ▼4.02
Posts /wp-admin/edit.php3.36 ▲0.0046.27 ▼0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.72 ▼4.85
Media Library /wp-admin/upload.php3.23 ▲0.0036.54 ▲4.44

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables
wp_ispring_data
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for iSpring Embedder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.42 ▲0.051.59 ▼0.0442.16 ▼1.28
Dashboard /wp-admin2,222 ▲315.81 ▲0.7597.03 ▼8.3839.37 ▼3.92
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.1238.41 ▼0.5034.61 ▲2.50
Add New Post /wp-admin/post-new.php1,555 ▲3323.22 ▲0.05594.33 ▼90.7547.70 ▼5.40
Media Library /wp-admin/upload.php1,404 ▲164.21 ▼0.0794.69 ▼6.3940.57 ▼2.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_ispring_data
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/embed-ispring/Embed-iSpring.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: ispring, ispring html5 embdder, html5 ppt embedder, ppt

embed-ispring/Embed-iSpring.php 92% from 13 tests

The main file in "iSpring Embedder" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("embed-ispring.php" instead of "Embed-iSpring.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected228 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1219228

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin