90% embed-stl

Code Review | Embed STL

WordPress plugin Embed STL scored 90% from 54 tests.

About plugin

  • Plugin page: embed-stl
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 5.8.1
  • First release: Nov 9, 2021
  • Latest release: Nov 10, 2021
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: mmdoogie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 46 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.02MB] [CPU: ▼174.63ms] Passed 4 tests

An overview of server-side resources used by Embed STL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.58 ▼0.2615.56 ▼19.67
Dashboard /wp-admin2.63 ▼0.4315.71 ▼25.25
Posts /wp-admin/edit.php2.63 ▼0.4816.26 ▼26.10
Add New Post /wp-admin/post-new.php2.63 ▼2.8116.54 ▼619.45
Media Library /wp-admin/upload.php2.63 ▼0.3813.59 ▼27.70

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Embed STL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.88 ▼0.1310.19 ▲1.5645.82 ▼0.08
Dashboard /wp-admin2,968 ▲385.89 ▼0.18146.31 ▼8.80102.11 ▼13.84
Posts /wp-admin/edit.php2,739 ▲32.70 ▲0.0166.65 ▼0.6083.81 ▼5.33
Add New Post /wp-admin/post-new.php1,623 ▼4917.38 ▼1.61350.29 ▼19.64124.90 ▲20.82
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.03154.13 ▲8.77116.15 ▼4.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-includes/blocks.php+103
    Undefined index: dependencies

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: 3d, block, stl

embed-stl/index.php 92% from 13 tests

Analyzing the main PHP file in "Embed STL" version 1.0.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("embed-stl.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,424 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111,4121972,224
JSON10080
PHP4121375
CSS17031
Markdown13013
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions5
▷ Named functions5100.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