84% ellie-code-snippet

Code Review | Ellie Code Snippet

WordPress plugin Ellie Code Snippet scored84%from 54 tests.

About plugin

  • Plugin page: ellie-code-snippet
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Nov 22, 2019
  • Latest release: Feb 7, 2020
  • Number of updates: 3
  • Update frequency: every 29.3 days
  • Top authors: getellie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 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: ▲0.07MB] [CPU: ▼2.91ms] Passed 4 tests

Server-side resources used by Ellie Code Snippet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.69 ▲4.84
Dashboard /wp-admin3.37 ▲0.0646.69 ▼2.72
Posts /wp-admin/edit.php3.48 ▲0.1245.25 ▼6.39
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.61 ▼7.35
Media Library /wp-admin/upload.php3.29 ▲0.0641.78 ▲6.87

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Ellie Code Snippet
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18413.56 ▼0.585.00 ▲3.3039.52 ▼8.09
Dashboard /wp-admin2,239 ▲544.93 ▲0.04100.79 ▼5.0479.87 ▲39.13
Posts /wp-admin/edit.php2,125 ▲362.01 ▼0.0334.11 ▼4.4133.97 ▼2.58
Add New Post /wp-admin/post-new.php1,701 ▲18222.40 ▼0.44771.62 ▲109.7152.24 ▼7.18
Media Library /wp-admin/upload.php1,418 ▲334.23 ▲0.0199.61 ▼8.9171.79 ▲27.53

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ellie-code-snippet/admin/partials/ellie-code-snippet-admin-display.php
    • > /wp-content/plugins/ellie-code-snippet/public/partials/ellie-code-snippet-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: ellie

ellie-code-snippet/ellie-code-snippet.php Passed 13 tests

The main file in "Ellie Code Snippet" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
This plugin helps to insert your Ellie code snippet to your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected300 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12130539278
CSS2189
SVG2007
JavaScript24546

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin