90% oddevan-deviantart-embed

Code Review | oddEvan DeviantArt Embed

WordPress plugin oddEvan DeviantArt Embed scored 90% from 54 tests.

About plugin

  • Plugin page: oddevan-deviantar...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 6.3.1
  • First release: Nov 6, 2020
  • Latest release: Nov 7, 2020
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: oddevan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.49ms] Passed 4 tests

This is a short check of server-side resources used by oddEvan DeviantArt Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0448.48 ▲6.38
Dashboard /wp-admin3.34 ▲0.0345.08 ▼0.77
Posts /wp-admin/edit.php3.39 ▲0.0347.78 ▼0.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.22 ▼6.66
Media Library /wp-admin/upload.php3.26 ▲0.0337.48 ▲5.80

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for oddEvan DeviantArt Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.29 ▼1.082.90 ▲0.3545.21 ▲1.97
Dashboard /wp-admin2,209 ▲185.88 ▼0.0094.28 ▼8.9539.18 ▼5.85
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0141.45 ▲4.5837.51 ▲2.63
Add New Post /wp-admin/post-new.php6,415 ▲4,89520.19 ▼2.57873.33 ▲207.7456.36 ▲2.59
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0398.07 ▼12.1242.26 ▼3.72

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: embed, deviantart

oddevan-deviantart-embed/oddevan-deviantart-embed.php Passed 13 tests

"oddEvan DeviantArt Embed" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Embed a work from DeviantArt into a post using the block editor.

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
There were no executable files found in this plugin125 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22258107
JSON10015
CSS2002
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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
Namespaces1
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 functions480.00%
▷ Anonymous functions120.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