90% wp-theme-plugin-editor-disable

Code Review | WP Theme Plugin Editor Disable

WordPress plugin WP Theme Plugin Editor Disable scored90%from 54 tests.

About plugin

  • Plugin page: wp-theme-plugin-e...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Jan 5, 2014
  • Latest release: Dec 21, 2017
  • Number of updates: 24
  • Update frequency: every 60.3 days
  • Top authors: Yslo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /12,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by WP Theme Plugin Editor Disable
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.0037.81 ▼13.48
Dashboard /wp-admin3.57 ▲0.0055.91 ▲1.14
Posts /wp-admin/edit.php3.68 ▲0.0048.82 ▼5.78
Add New Post /wp-admin/post-new.php6.15 ▲0.0087.08 ▼22.97
Media Library /wp-admin/upload.php3.49 ▲0.0041.41 ▼0.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Theme Plugin Editor Disable
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▲2014.40 ▼0.011.85 ▲0.0943.22 ▼1.61
Dashboard /wp-admin2,184 ▲45.58 ▼0.1085.52 ▼4.1939.38 ▼5.11
Posts /wp-admin/edit.php2,095 ▼52.01 ▼0.0534.14 ▼5.2933.49 ▼3.52
Add New Post /wp-admin/post-new.php1,520 ▼2017.65 ▼5.37689.41 ▲14.1564.63 ▲0.82
Media Library /wp-admin/upload.php1,389 ▼114.27 ▲0.10115.81 ▲17.9347.56 ▲4.12

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
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: core, theme, plugin, security, admin...

wp-theme-plugin-editor-disable/wp-theme-plugin-editor-disable.php 92% from 13 tests

The main PHP script in "WP Theme Plugin Editor Disable" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 376 characters long)

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
Success! There were no dangerous files found in this plugin5 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22125

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected