Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼0.15ms] Passed 4 tests
Server-side resources used by WP App Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 39.91 ▼0.20 |
Dashboard /wp-admin | 3.59 ▲0.29 | 57.25 ▲6.82 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 55.16 ▼0.38 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 91.43 ▼3.74 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 40.16 ▲3.72 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP App Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 13.47 ▼0.83 | 2.94 ▲0.96 | 42.89 ▼0.35 |
Dashboard /wp-admin | 2,243 ▲52 | 5.03 ▼0.86 | 101.97 ▼2.43 | 43.51 ▼0.93 |
Posts /wp-admin/edit.php | 2,134 ▲41 | 2.29 ▲0.25 | 41.44 ▲0.93 | 36.48 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 17.48 ▼5.57 | 675.87 ▲21.64 | 35.67 ▼31.19 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.43 ▲0.24 | 102.33 ▼22.09 | 45.53 ▼7.06 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-app-bar/includes/admin/html-app-bar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-app-bar/includes/admin/ajax-app-bar.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is the admin screen. Super simple to select and configure each of the 5 functions you can display in the app bar at once.), #2 (This is a screenshot of the app bar in action. It will appear across the bottom of the browser screen for all mobile visitors. One tap to call, open your location in Google maps or any of the other functions you can choose to display.)
wp-app-bar/wp-app-bar.php 69% from 13 tests
The primary PHP file in "WP App Bar" version 1.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.6.0" instead of "4.1")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 214 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,173 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 580 | 27 | 3,114 |
PHP | 7 | 381 | 896 | 1,296 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 4 | 29 | 10 | 48 |
Markdown | 1 | 14 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 34.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 4 | 80.00% |
Methods | 70 | |
▷ Static methods | 13 | 18.57% |
▷ Public methods | 64 | 91.43% |
▷ Protected methods | 2 | 2.86% |
▷ Private methods | 4 | 5.71% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 89.48KB | 25.28KB | ▼ 71.75% |
screenshot-2.png | 200.03KB | 77.37KB | ▼ 61.32% |