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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.21ms] Passed 4 tests
This is a short check of server-side resources used by AMP Sidebar Hamburger Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.38 ▼3.50 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.59 ▼1.71 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 42.60 ▼4.82 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.30 ▲3.59 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.44 ▲1.18 |
AMP Sidebar /wp-admin/options-general.php?page=jozz-ampsidebar-settings | 3.25 | 30.56 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for AMP Sidebar Hamburger Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲246 | 14.55 ▲0.18 | 22.51 ▲20.39 | 45.23 ▼3.51 |
Dashboard /wp-admin | 2,221 ▲30 | 5.01 ▼1.00 | 120.64 ▼0.99 | 43.19 ▼0.88 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.27 ▲0.23 | 39.23 ▲4.49 | 30.18 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 17.86 ▼0.50 | 671.94 ▲43.34 | 37.19 ▼18.84 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.39 ▲0.19 | 96.88 ▼2.32 | 41.81 ▼3.77 |
AMP Sidebar /wp-admin/options-general.php?page=jozz-ampsidebar-settings | 1,061 | 2.40 | 47.73 | 32.07 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/amp-sidebar-hamburger-menu/header-bar.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/amp-sidebar-hamburger-menu/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/amp-sidebar-hamburger-menu/amp-wp-sidebar.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: amp-sidebar, hamburger dropdown, navigation menu, amp navigation, amp sidebar...
amp-sidebar-hamburger-menu/amp-wp-sidebar.php 92% from 13 tests
The main file in "AMP Sidebar Hamburger Menu" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("amp-sidebar-hamburger-menu.php" instead of "amp-wp-sidebar.php")
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
There were no executable files found in this plugin536 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 137 | 70 | 380 |
CSS | 1 | 6 | 2 | 156 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin