90% editorx

Code Review | EditorX

WordPress plugin EditorX scored90%from 54 tests.

About plugin

  • Plugin page: editorx
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 25, 2022
  • Latest release: Feb 26, 2022
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: jakariaistauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.05ms] Passed 4 tests

A check of server-side resources used by EditorX
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1145.66 ▼0.00
Dashboard /wp-admin3.39 ▲0.0853.74 ▲1.08
Posts /wp-admin/edit.php3.50 ▲0.1448.60 ▼4.73
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.90 ▼2.59
Media Library /wp-admin/upload.php3.31 ▲0.0836.02 ▼0.89

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for EditorX
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.40 ▼1.159.33 ▲7.5041.41 ▼2.17
Dashboard /wp-admin2,198 ▲185.63 ▼0.0396.33 ▲3.1146.94 ▲6.70
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0337.26 ▲3.3934.68 ▼4.39
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▼0.00655.26 ▼45.1758.62 ▼9.57
Media Library /wp-admin/upload.php1,397 ▼04.18 ▼0.0197.48 ▼7.4043.70 ▼2.23

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

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)
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: post editor, customizer, editor, wordpress

editorx/editorx.php 92% from 13 tests

The principal PHP file in "EditorX" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected681 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12130222542
JavaScript112089
CSS10034
JSON20016

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.14
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods39
▷ Static methods410.26%
▷ Public methods3897.44%
▷ Protected methods00.00%
▷ Private methods12.56%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin