89% dm-pojo-menu-mobile

Code Review | DM Pojo Mobile Menu

WordPress plugin DM Pojo Mobile Menu scored89%from 54 tests.

About plugin

  • Plugin page: dm-pojo-menu-mobile
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8.1
  • WordPress version: 6.3.1
  • First release: May 25, 2017
  • Latest release: May 25, 2017
  • Number of updates: 12
  • Update frequency: every 9.5 days
  • Top authors: yonifre (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /1,574 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼3.79ms] Passed 4 tests

This is a short check of server-side resources used by DM Pojo Mobile Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.13 ▼1.57
Dashboard /wp-admin3.31 ▼0.0345.30 ▼13.88
Posts /wp-admin/edit.php3.36 ▲0.0145.51 ▲2.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.08 ▲1.61
Media Library /wp-admin/upload.php3.24 ▲0.0134.30 ▼1.32

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DM Pojo Mobile Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.38 ▼0.401.78 ▲0.2744.04 ▲1.86
Dashboard /wp-admin2,212 ▲315.59 ▼0.0283.46 ▼15.8540.83 ▼5.95
Posts /wp-admin/edit.php2,118 ▲182.03 ▲0.0340.13 ▲2.6236.44 ▲2.74
Add New Post /wp-admin/post-new.php1,538 ▲123.36 ▲5.45584.37 ▼46.1952.00 ▼16.48
Media Library /wp-admin/upload.php1,414 ▲144.19 ▼0.00104.02 ▲10.9744.47 ▲3.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • 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)
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: mobile, menu, pojo, submenu, responsive...

dm-pojo-menu-mobile/dm-pojo-mobile-menu.php 77% from 13 tests

The entry point to "DM Pojo Mobile Menu" version 0.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: Prefix the domain path with a forward slash character ("/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dm-pojo-menu-mobile.php" instead of "dm-pojo-mobile-menu.php")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171086

PHP code Passed 2 tests

Analyzing 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.40
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin