78% dc-full-screen-responsive-menu

Code Review | DC - Full Screen Responsive Menu

WordPress plugin DC - Full Screen Responsive Menu scored78%from 54 tests.

About plugin

  • Plugin page: dc-full-screen-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Jul 24, 2015
  • Latest release: Nov 24, 2017
  • Number of updates: 12
  • Update frequency: every 71.3 days
  • Top authors: dattardwp-21 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

70+ active /7,292 total downloads

Benchmarks

Plugin footprint 82% 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.01MB] [CPU: ▼11.04ms] Passed 4 tests

A check of server-side resources used by DC - Full Screen Responsive Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0531.14 ▼8.46
Dashboard /wp-admin3.34 ▲0.0351.53 ▲1.10
Posts /wp-admin/edit.php3.39 ▲0.0349.91 ▲1.54
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.82 ▼38.34
Media Library /wp-admin/upload.php3.26 ▲0.0337.92 ▲1.96
DC FullScreen Menu /wp-admin/themes.php?page=dc_fullscreen_menu_list3.2335.49

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/dc-full-screen-responsive-menu/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

DC - Full Screen Responsive Menu: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲8913.47 ▼1.082.53 ▲0.5746.81 ▲7.64
Dashboard /wp-admin2,247 ▲445.16 ▲0.24105.80 ▼3.3642.10 ▼1.75
Posts /wp-admin/edit.php2,128 ▲282.29 ▲0.2939.91 ▼1.5334.26 ▼4.15
Add New Post /wp-admin/post-new.php1,545 ▲723.21 ▲0.05716.51 ▲118.9037.50 ▼9.65
Media Library /wp-admin/upload.php1,420 ▲234.47 ▲0.2697.89 ▼6.4039.96 ▼8.06
DC FullScreen Menu /wp-admin/themes.php?page=dc_fullscreen_menu_list8101.9626.1527.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dc-full-screen-responsive-menu/views/admin.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: menus in wp-content/plugins/dc-full-screen-responsive-menu/views/admin.php on line 39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/dc-full-screen-responsive-menu/views/menu.php:2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/dc-full-screen-responsive-menu/views/admin.php on line 39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dc-full-screen-responsive-menu/fullscreen_menu.php:10

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: responsive, overlay, menu, wordpress, fullscreen

dc-full-screen-responsive-menu/fullscreen_menu.php 92% from 13 tests

"DC - Full Screen Responsive Menu" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dc-full-screen-responsive-menu.php" instead of "fullscreen_menu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin430 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31514210
CSS1341121
JavaScript2131399

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions6
▷ Named functions6100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close.png0.99KB0.98KB▼ 0.79%
images/star.png3.42KB2.03KB▼ 40.65%
images/star_16x16.png0.67KB0.73KB0.00%