90% disable-file-editor

Code Review | Disable File Editor

WordPress plugin Disable File Editor scored90%from 54 tests.

About plugin

  • Plugin page: disable-file-editor
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Feb 17, 2023
  • Number of updates: 10
  • Update frequency: every 270.7 days
  • Top authors: nikunjsoni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Disable File Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.57 ▼4.83
Dashboard /wp-admin3.31 ▲0.0048.82 ▼4.00
Posts /wp-admin/edit.php3.36 ▲0.0054.11 ▲3.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.54 ▼0.20
Media Library /wp-admin/upload.php3.23 ▲0.0037.57 ▲3.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Disable File Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▲2014.30 ▼0.051.62 ▼0.0644.56 ▼5.14
Dashboard /wp-admin2,190 ▲135.62 ▼0.0393.69 ▲5.3138.65 ▼4.31
Posts /wp-admin/edit.php2,092 ▼81.96 ▼0.0239.76 ▲1.8735.22 ▼3.01
Add New Post /wp-admin/post-new.php1,525 ▼122.93 ▼0.66670.74 ▼16.6653.13 ▼4.61
Media Library /wp-admin/upload.php1,389 ▼114.23 ▲0.0099.86 ▼7.5543.54 ▲0.50

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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

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

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: security, file, disable file, admin, wp-admin...

disable-file-editor/disable-file-editor.php 92% from 13 tests

"Disable File Editor" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected10 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP241010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin