88% mcl-slidein-nav

Code Review | Mcl Slidein Nav

WordPress plugin Mcl Slidein Nav scored 88% from 53 tests.

About plugin

  • Plugin page: mcl-slidein-nav
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.6.1
  • WordPress version: 5.8.1
  • First release: Dec 27, 2015
  • Latest release: Apr 30, 2017
  • Number of updates: 17
  • Update frequency: every 28.8 days
  • Top authors: SaoriMiyazaki (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 1,672 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼264.04ms] Passed 4 tests

An overview of server-side resources used by Mcl Slidein Nav
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1628.89 ▲8.07
Dashboard /wp-admin3.10 ▲0.0553.47 ▲11.70
Posts /wp-admin/edit.php3.15 ▲0.0540.14 ▼18.66
Add New Post /wp-admin/post-new.php5.47 ▲0.0491.66 ▼1,040.49
Media Library /wp-admin/upload.php3.04 ▲0.0432.35 ▼5.09

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Mcl Slidein Nav
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲16016.35 ▲0.7614.65 ▲5.9947.74 ▼13.06
Dashboard /wp-admin2,932 ▲796.10 ▲0.22155.11 ▲18.92129.21 ▲17.94
Posts /wp-admin/edit.php2,711 ▲52.70 ▲0.0168.51 ▼5.9390.16 ▼11.21
Add New Post /wp-admin/post-new.php1,856 ▲20019.18 ▲0.76376.42 ▼18.27108.73 ▼2.70
Media Library /wp-admin/upload.php1,777 ▲54.99 ▼0.02157.74 ▲4.75118.07 ▼13.64
Mcl Slidein Nav /wp-admin/mcl-slidein-nav.php260.900.1012.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mcl-slidein-nav/mcl-slidein-nav.php:41

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/mcl-slidein-nav.php
    • > Network (severe)
    wp-admin/mcl-slidein-nav.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Setup screen), #2 (Menu color theme “White”), #3 (Menu color theme “Dark”)
The official readme.txt might help

mcl-slidein-nav/mcl-slidein-nav.php Passed 13 tests

The main PHP script in "Mcl Slidein Nav" version 1.0.5 is automatically included on every request by WordPress
50 characters long description:
This Plugin will make with Custom menu Slidein nav

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected638 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP14881277
Sass4142191
JavaScript111560
CSS3192456
PO File1171754

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.39MB with 0.27MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png139.89KB48.20KB▼ 65.55%
screenshot-1.png121.94KB32.30KB▼ 73.51%
screenshot-2.png140.19KB47.63KB▼ 66.03%