74% embeditor

Code Review | Embeditor

WordPress plugin Embeditor scored74%from 54 tests.

About plugin

  • Plugin page: embeditor
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.3.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2012
  • Latest release: Oct 29, 2012
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: DirectMatchMedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Embeditor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.46 ▼0.88
Dashboard /wp-admin3.35 ▲0.0553.57 ▼1.81
Posts /wp-admin/edit.php3.40 ▲0.0549.39 ▼2.43
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.79 ▼17.34
Media Library /wp-admin/upload.php3.28 ▲0.0542.11 ▲5.38

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
EmbEditor

Browser metrics Passed 4 tests

This is an overview of browser requirements for Embeditor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.41 ▼0.947.91 ▲6.1841.43 ▼4.44
Dashboard /wp-admin2,197 ▲175.64 ▼0.0292.29 ▲7.1145.81 ▲6.82
Posts /wp-admin/edit.php2,102 ▼11.98 ▼0.0533.69 ▼1.2235.85 ▲0.41
Add New Post /wp-admin/post-new.php1,530 ▲223.52 ▲0.31684.93 ▼12.2254.31 ▼3.42
Media Library /wp-admin/upload.php1,399 ▼14.21 ▼0.0699.96 ▼10.9543.68 ▼4.60

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
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/embeditor/embeditor.php+82
    Use of undefined constant EMBEDITIOR_OPTION - assumed 'EMBEDITIOR_OPTION' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • EmbEditor
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/embeditor/embeditor.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: image, tags, links, embed

embeditor/embeditor.php 92% from 13 tests

The main file in "Embeditor" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 336 characters long)

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 detected284 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP17257197
JavaScript313275
CSS10012

PHP code Passed 2 tests

This is a short overview 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.11
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin