10% developer-code-editor

Code Review | Developer Code Editor

WordPress plugin Developer Code Editor scored10%from 54 tests.

About plugin

  • Plugin page: developer-code-ed...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.3
  • WordPress version: 6.3.1
  • First release: Dec 18, 2011
  • Latest release: Feb 26, 2012
  • Number of updates: 14
  • Update frequency: every 5.0 days
  • Top authors: ChrisHurst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,506 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/developer-code-editor/plugin-loader.php+14
    Undefined index: action

Server metrics [RAM: ▼1.94MB] [CPU: ▼53.67ms] Passed 4 tests

An overview of server-side resources used by Developer Code Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.58 ▼33.62
Dashboard /wp-admin2.07 ▼1.245.41 ▼43.23
Posts /wp-admin/edit.php2.07 ▼1.296.03 ▼40.15
Add New Post /wp-admin/post-new.php2.07 ▼3.826.65 ▼97.67
Media Library /wp-admin/upload.php2.07 ▼1.165.11 ▼29.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Developer Code Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.054.77 ▲2.9543.17 ▲2.69
Dashboard /wp-admin2,203 ▲184.92 ▼0.9995.41 ▼3.9439.02 ▼7.21
Posts /wp-admin/edit.php2,086 ▼32.13 ▲0.1640.35 ▼1.6139.22 ▲1.02
Add New Post /wp-admin/post-new.php1,537 ▲123.50 ▲0.59682.94 ▲40.6957.79 ▼10.66
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.02102.22 ▲3.8243.13 ▼0.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/developer-code-editor/plugin-loader.php+14
    Undefined index: action
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Developer_Code_Editor' not found in wp-content/plugins/developer-code-editor/plugin-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/developer-code-editor/plugin-loader.php:11

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === developer-code-editor === )
  • Screenshots: Screenshot #1 (Plugin Screenshot) image missing
You can take inspiration from this readme.txt

developer-code-editor/plugin-loader.php 92% from 13 tests

Analyzing the main PHP file in "Developer Code Editor" version 1.3
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("developer-code-editor.php" instead of "plugin-loader.php")

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
Good job! No executable or dangerous file extensions detected4,018 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript112292343,582
HTML5201208
PHP37679122
CSS3142106

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.50
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods975.00%
▷ Protected methods18.33%
▷ Private methods216.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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