89% visual-notes-for-elemnetor

Code Review | Visual Notes For Elemnetor

WordPress plugin Visual Notes For Elemnetor scored89%from 54 tests.

About plugin

  • Plugin page: visual-notes-for-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: Sep 1, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: avitrop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.40ms] Passed 4 tests

A check of server-side resources used by Visual Notes For Elemnetor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0841.22 ▼5.33
Dashboard /wp-admin3.42 ▲0.0748.26 ▼5.95
Posts /wp-admin/edit.php3.53 ▲0.1349.93 ▼1.07
Add New Post /wp-admin/post-new.php6.00 ▲0.0786.27 ▼1.25
Media Library /wp-admin/upload.php3.34 ▲0.0737.89 ▲4.16

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Visual Notes For Elemnetor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.66 ▼0.708.22 ▲6.3943.25 ▼1.94
Dashboard /wp-admin2,192 ▲185.58 ▼0.0883.17 ▼16.4037.27 ▼6.99
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.1739.14 ▲1.9135.72 ▼0.02
Add New Post /wp-admin/post-new.php1,535 ▲918.37 ▼4.64628.75 ▼33.9664.02 ▲4.55
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0299.58 ▲2.7643.12 ▼1.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: notes, elementor

visual-notes-for-elemnetor/elementor-edit-preview.php 85% from 13 tests

"Visual Notes For Elemnetor" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("visual-notes-for-elemnetor.php" instead of "elementor-edit-preview.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,949 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4262971,545
PHP12423178
CSS2110176
PO File1181950

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions0
▷ Named functions00.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