84% fullscreen-menu

Code Review | fullscreen Menu

WordPress plugin fullscreen Menu scored84%from 54 tests.

About plugin

  • Plugin page: fullscreen-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.4
  • WordPress version: 6.3.1
  • First release: Feb 14, 2015
  • Latest release: Feb 14, 2015
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: najih (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,962 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.17MB] [CPU: ▼9.25ms] Passed 4 tests

A check of server-side resources used by fullscreen Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.21 ▼0.2623.08 ▼17.47
Dashboard /wp-admin3.62 ▲0.3154.14 ▲0.06
Posts /wp-admin/edit.php3.73 ▲0.3748.23 ▼4.29
Add New Post /wp-admin/post-new.php6.20 ▲0.3194.94 ▼15.28
Media Library /wp-admin/upload.php3.54 ▲0.3145.67 ▲5.32
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.5436.64

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by fullscreen Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8113.31 ▼0.995.07 ▲3.3044.11 ▲0.68
Dashboard /wp-admin2,248 ▲455.88 ▲1.02105.50 ▲1.5046.99 ▲6.27
Posts /wp-admin/edit.php2,136 ▲332.19 ▲0.1738.20 ▼0.8140.45 ▲5.07
Add New Post /wp-admin/post-new.php1,563 ▲3223.18 ▲0.14636.68 ▼61.0763.90 ▼5.02
Media Library /wp-admin/upload.php1,435 ▲384.33 ▲0.07106.03 ▼1.4752.12 ▼1.02
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9472.0729.3230.86

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fullscreen-menu/class-tgm-plugin-activation.php:161
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fullscreen-menu/class-tgm-plugin-activation.php:161

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Responsive Design), #2 (Manage menu location easely), #3 (Menu appear animations), #4 (Menu Customization), #5 (Custom Background & Typography), #6 (Custom Open & Close Button), #7 (Custom css)
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

fullscreen-menu/fullscreen-menu.php Passed 13 tests

The principal PHP file in "fullscreen Menu" v. 1.0 is loaded by WordPress automatically on each request
129 characters long description:
a free plugin to create custom fullscreen menu quickly in your wordpress website (user-friendly, highly customizable, responsive)

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 detected2,227 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP34869461,568
CSS7783525
JavaScript51522134

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity44.60
▷ Minimum class complexity10.00
▷ Maximum class complexity112.00
Average method complexity4.89
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods56
▷ Static methods11.79%
▷ Public methods5089.29%
▷ Protected methods610.71%
▷ 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin