94% dark-editor

Code Review | Dark Editor - Themes & Plugins Editor

WordPress plugin Dark Editor - Themes & Plugins Editor scored 94% from 54 tests.

About plugin

  • Plugin page: dark-editor
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.5.0
  • WordPress version: 5.9.2
  • First release: Aug 4, 2020
  • Latest release: Aug 4, 2020
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: RapidDev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 293 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼296.19ms] Passed 4 tests

This is a short check of server-side resources used by Dark Editor - Themes & Plugins Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.81 ▲4.15
Dashboard /wp-admin3.42 ▲0.0133.26 ▼0.90
Posts /wp-admin/edit.php3.65 ▲0.0137.67 ▼3.73
Add New Post /wp-admin/post-new.php6.90 ▼0.0899.59 ▼1,182.76
Media Library /wp-admin/upload.php3.30 ▲0.0126.71 ▲2.64

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Dark Editor - Themes & Plugins Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲2116.00 ▲0.367.23 ▲0.942.41 ▲0.12
Dashboard /wp-admin2,897 ▲396.13 ▼0.06118.46 ▼18.53154.61 ▼6.14
Posts /wp-admin/edit.php2,693 ▼13.24 ▲0.0063.73 ▼3.43139.74 ▼5.91
Add New Post /wp-admin/post-new.php1,754 ▲9321.23 ▲4.54407.40 ▲5.19159.18 ▲1.73
Media Library /wp-admin/upload.php1,700 ▼15.51 ▲0.01142.85 ▲2.65181.44 ▼12.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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

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/dark-editor/assets/class.php
    • > /wp-content/plugins/dark-editor/dark-editor.php

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: dark, editor, developer, css, plugin...

dark-editor/dark-editor.php 92% from 13 tests

"Dark Editor - Themes & Plugins Editor" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin254 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS13110221
PHP246133

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin