84% cv-menu

Code Review | Slide Nav

WordPress plugin Slide Nav scored 84% from 54 tests.

About plugin

  • Plugin page: cv-menu
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2019
  • Latest release: Jun 26, 2019
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: kazishiplu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 919 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼0.37ms] Passed 4 tests

This is a short check of server-side resources used by Slide Nav
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1839.27 ▼3.01
Dashboard /wp-admin3.60 ▲0.3052.25 ▲2.75
Posts /wp-admin/edit.php3.66 ▲0.3055.97 ▲8.83
Add New Post /wp-admin/post-new.php6.12 ▲0.2389.30 ▼2.85
Media Library /wp-admin/upload.php3.44 ▲0.2138.85 ▲1.62

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 9 new options
New WordPress options
cvmenu_header
widget_recent-comments
cvmenu_color
widget_theysaidso_widget
cvmenu_basic
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Slide Nav
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲23415.01 ▲0.711.65 ▼0.4939.70 ▼2.78
Dashboard /wp-admin2,400 ▲2096.61 ▲1.74134.17 ▲20.8143.47 ▼5.32
Posts /wp-admin/edit.php2,306 ▲2143.55 ▲1.4956.87 ▲17.3433.74 ▼2.48
Add New Post /wp-admin/post-new.php1,556 ▲4217.54 ▲0.01650.47 ▼58.6338.47 ▼16.58
Media Library /wp-admin/upload.php1,445 ▲574.41 ▲0.1682.84 ▼22.6146.15 ▲0.89

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • cvmenu_basic
    • theysaidso_admin_options
    • cvmenu_header
    • cvmenu_color

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cv-menu/public/partials/cv-menu-public-display.php
    • > /wp-content/plugins/cv-menu/admin/partials/plugin-cv-menu-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Screenshots: A description for screenshot #2 is missing in cv-menu/assets to your readme.txt
The official readme.txt might help

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

"Slide Nav" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Responsive Android Navigation Drawer style wordpress mobile menu.

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
No dangerous file extensions were detected2,161 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP13304679953
CSS84059717
HTML1110296
SVG31292
JavaScript3163381
JSON10022

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.50
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods65
▷ Static methods23.08%
▷ Public methods6092.31%
▷ Protected methods00.00%
▷ Private methods57.69%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/cv-menu-16.png19.78KB0.66KB▼ 96.69%