89% ngo-menu-deactivate

Code Review | NGO-menu-deactivate

WordPress plugin NGO-menu-deactivate scored89%from 54 tests.

About plugin

  • Plugin page: ngo-menu-deactivate
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2016
  • Latest release: Dec 15, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: joje47 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /746 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
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼7.65ms] Passed 4 tests

This is a short check of server-side resources used by NGO-menu-deactivate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.71 ▼7.72
Dashboard /wp-admin3.21 ▼0.0937.70 ▼8.27
Posts /wp-admin/edit.php3.39 ▲0.0450.73 ▲2.84
Add New Post /wp-admin/post-new.php5.88 ▼0.0088.61 ▼14.62
Media Library /wp-admin/upload.php3.22 ▼0.0136.82 ▲0.01

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

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

Browser metrics Passed 4 tests

NGO-menu-deactivate: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,734 ▼1,01213.70 ▼0.691.68 ▼0.3539.31 ▼2.46
Dashboard /wp-admin1,145 ▼1,0465.12 ▼0.7972.71 ▼30.4525.50 ▼23.75
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0039.68 ▲2.3235.17 ▼1.37
Add New Post /wp-admin/post-new.php1,521 ▼1423.35 ▲0.23685.85 ▲27.1553.19 ▼5.00
Media Library /wp-admin/upload.php1,382 ▼34.19 ▼0.0198.76 ▼3.2741.30 ▼1.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

ngo-menu-deactivate/ngo-menu-deactivate.php 92% from 13 tests

The main PHP script in "NGO-menu-deactivate" version 1.1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin209 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13783139
PO File281070

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin