90% oembed-for-simple3d

Code Review | Simple3D oEmbed

WordPress plugin Simple3D oEmbed scored 90% from 54 tests.

About plugin

  • Plugin page: oembed-for-simple3d
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Sep 7, 2015
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: windmillsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 625 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.74ms] Passed 4 tests

Analyzing server-side resources used by Simple3D oEmbed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.20 ▼4.93
Dashboard /wp-admin3.31 ▲0.0147.21 ▼4.48
Posts /wp-admin/edit.php3.36 ▲0.0145.78 ▼5.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.20 ▼24.23
Media Library /wp-admin/upload.php3.24 ▲0.0134.82 ▼2.02

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple3D oEmbed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.73 ▲0.361.65 ▼0.1440.52 ▼0.10
Dashboard /wp-admin2,206 ▲145.90 ▲0.96108.40 ▲2.4142.13 ▼2.34
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0839.73 ▼1.1136.20 ▲1.86
Add New Post /wp-admin/post-new.php1,533 ▼223.23 ▲0.10650.54 ▼2.0150.66 ▲1.25
Media Library /wp-admin/upload.php1,388 ▼34.26 ▼0.0493.10 ▼6.3143.83 ▼2.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (텍스트에디터에 모델 주소 붙여 넣기.), #2 (비주얼에디터에 모델 주소 붙여 넣기.)
The official readme.txt is a good inspiration

oembed-for-simple3d/oembed-for-simple3d.php Passed 13 tests

The main PHP script in "Simple3D oEmbed" version 1.0 is automatically included on every request by WordPress
58 characters long description:
Embed 3D models from simple3d.net into your WordPress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected41 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File15531
PHP351610

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png60.49KB15.52KB▼ 74.34%
screenshot-2.png135.09KB39.34KB▼ 70.88%