84% dl-codemirror

Code Review | DL CodeMirror

WordPress plugin DL CodeMirror scored84%from 54 tests.

About plugin

  • Plugin page: dl-codemirror
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: Aug 28, 2016
  • Number of updates: 6
  • Update frequency: every 30.2 days
  • Top authors: dyadyalesha (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.27ms] Passed 4 tests

A check of server-side resources used by DL CodeMirror
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.44 ▼5.21
Dashboard /wp-admin3.31 ▲0.0148.47 ▼1.56
Posts /wp-admin/edit.php3.36 ▲0.0045.50 ▼7.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.94 ▼22.48
Media Library /wp-admin/upload.php3.23 ▲0.0037.14 ▼0.36

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DL CodeMirror
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.35 ▼0.974.18 ▲2.1341.97 ▼2.07
Dashboard /wp-admin2,206 ▲184.84 ▼1.07116.73 ▲3.4642.05 ▼4.40
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0438.58 ▼1.3834.50 ▼3.99
Add New Post /wp-admin/post-new.php1,535 ▲223.15 ▼0.02654.50 ▼12.1962.17 ▲13.63
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.01101.69 ▼10.2646.36 ▼3.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dl-codemirror/dl-codemirror.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Редактирование файла css), #2 (Редактирование файла php)
You can look at the official readme.txt

dl-codemirror/dl-codemirror.php Passed 13 tests

The principal PHP file in "DL CodeMirror" v. 1.0 is loaded by WordPress automatically on each request
85 characters long description:
Подсветка редактора кода Wordpress с помощью CodeMirror

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected19,189 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript701,27091613,166
HTML501,000265,439
CSS195844528
PHP113956

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.15
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.16MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png86.55KB85.73KB▼ 0.95%
screenshot-1.png79.82KB37.19KB▼ 53.40%