84% disable-unnecessary-functionality

Code Review | Disables unnecessary functionality

WordPress plugin Disables unnecessary functionality scored84%from 54 tests.

About plugin

  • Plugin page: disable-unnecessa...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9
  • WordPress version: 6.3.1
  • First release: Jun 14, 2017
  • Latest release: Nov 19, 2017
  • Number of updates: 24
  • Update frequency: every 6.6 days
  • Top authors: dreamerklim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,329 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.11ms] Passed 4 tests

Analyzing server-side resources used by Disables unnecessary functionality
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.27 ▲1.72
Dashboard /wp-admin3.31 ▲0.0149.38 ▼4.30
Posts /wp-admin/edit.php3.36 ▲0.0051.30 ▼4.47
Add New Post /wp-admin/post-new.php5.82 ▼0.0684.99 ▼21.37
Media Library /wp-admin/upload.php3.23 ▲0.0037.72 ▲2.27

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

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

Browser metrics Passed 4 tests

Disables unnecessary functionality: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,785 ▲1413.20 ▼1.191.43 ▼0.4946.74 ▲0.65
Dashboard /wp-admin2,203 ▲125.90 ▲0.98110.70 ▼1.3141.67 ▼3.53
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0134.38 ▼8.5332.99 ▼3.18
Add New Post /wp-admin/post-new.php1,514 ▼2917.26 ▼0.72639.92 ▲1.5151.14 ▲2.37
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0598.38 ▼5.2140.54 ▼5.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please 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_filter() in wp-content/plugins/disable-unnecessary-functionality/disable-unnecessary-functionality.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: rest api, unnecessary functionality, wp-json, sizes, disable...

disable-unnecessary-functionality/disable-unnecessary-functionality.php 92% from 13 tests

The main PHP script in "Disables unnecessary functionality" version 1.3.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)

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
Everything looks great! No dangerous files found in this plugin122 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15811091
PO File15531

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 code0.06
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%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin