89% mowomo-no-default-fullscreen-mode

Code Review | mowomo no default fullscreen mode

WordPress plugin mowomo no default fullscreen mode scored89%from 54 tests.

About plugin

  • Plugin page: mowomo-no-default...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2020
  • Latest release: Nov 20, 2020
  • Number of updates: 5
  • Update frequency: every 32.2 days
  • Top authors: mowomo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by mowomo no default fullscreen mode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.71 ▼1.03
Dashboard /wp-admin3.31 ▼0.0443.56 ▼19.58
Posts /wp-admin/edit.php3.36 ▲0.0051.85 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.01 ▼16.90
Media Library /wp-admin/upload.php3.23 ▲0.0035.09 ▼3.64

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

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

Browser metrics Passed 4 tests

mowomo no default fullscreen mode: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.20 ▼0.151.56 ▼0.1140.68 ▲2.03
Dashboard /wp-admin2,198 ▲215.61 ▲0.0394.43 ▲4.7941.51 ▼0.52
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0436.29 ▼2.6736.25 ▼0.66
Add New Post /wp-admin/post-new.php1,538 ▲1023.56 ▲0.51680.67 ▲32.1978.61 ▲17.17
Media Library /wp-admin/upload.php1,397 ▼04.16 ▼0.20100.23 ▼5.9342.64 ▼0.76

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: fullscreen, gutenberg

mowomo-no-default-fullscreen-mode/mowomo-no-default-fullscreen-for-gutenberg.php 85% from 13 tests

This is the main PHP file of "mowomo no default fullscreen mode" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mowomo-no-default-fullscreen-mode.php" instead of "mowomo-no-default-fullscreen-for-gutenberg.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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