90% edithor

Code Review | Edithor

WordPress plugin Edithor scored90%from 54 tests.

About plugin

  • Plugin page: edithor
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2018
  • Latest release: May 29, 2019
  • Number of updates: 10
  • Update frequency: every 19.4 days
  • Top authors: edithor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Edithor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.29 ▼1.81
Dashboard /wp-admin3.32 ▲0.0142.87 ▼5.50
Posts /wp-admin/edit.php3.37 ▲0.0144.57 ▼1.69
Add New Post /wp-admin/post-new.php5.84 ▼0.0583.21 ▼16.75
Media Library /wp-admin/upload.php3.24 ▲0.0141.08 ▲6.82

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Edithor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.29 ▼0.271.75 ▲0.1346.14 ▲4.86
Dashboard /wp-admin2,192 ▲155.51 ▼0.1584.52 ▼4.6638.34 ▼1.10
Posts /wp-admin/edit.php2,100 ▼02.08 ▲0.1333.78 ▼2.7033.03 ▲0.43
Add New Post /wp-admin/post-new.php1,696 ▲15922.54 ▲4.00620.64 ▼11.4845.33 ▼16.66
Media Library /wp-admin/upload.php1,394 ▼94.17 ▼0.0495.39 ▼1.5846.77 ▲1.92

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: templates, editor, gutenberg, blocks, page builder

edithor/edithor.php Passed 13 tests

The main PHP script in "Edithor" version 1.0.1 is automatically included on every request by WordPress
132 characters long description:
Tool extending the new Gutenberg block editor. Simply create and design custom pages by using beautiful templates, layouts & blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin49 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2113340
CSS20118
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/assets/templates/layout-007.png0.76KB0.43KB▼ 43.97%
dist/assets/templates/layout-004.png1.29KB0.95KB▼ 25.93%
dist/assets/templates/layout-002.png1.18KB0.85KB▼ 28.22%
dist/assets/templates/layout-003.png1.67KB1.34KB▼ 20.00%
dist/assets/templates/layout-001.png1.56KB1.22KB▼ 21.52%