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.07MB] [CPU: ▼8.40ms] Passed 4 tests
This is a short check of server-side resources used by Apollo Bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.04 | 31.81 ▼8.98 |
Dashboard /wp-admin | 3.44 ▲0.05 | 61.06 ▼2.54 |
Posts /wp-admin/edit.php | 3.55 ▲0.16 | 53.40 ▲0.10 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.09 | 90.13 ▼20.71 |
Media Library /wp-admin/upload.php | 3.36 ▲0.09 | 36.15 ▼1.35 |
All items /wp-admin/edit.php?post_type=announcements | 3.40 | 40.79 |
Apollo Bar /wp-admin/options-general.php?page=apollo-bar/includes/apollo-bar-options.php | 3.31 | 32.20 |
Add New /wp-admin/post-new.php?post_type=announcements | 3.49 | 51.90 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Apollo Bar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲152 | 13.56 ▼0.80 | 9.41 ▲7.81 | 42.39 ▲0.71 |
Dashboard /wp-admin | 2,222 ▲42 | 5.51 ▼0.12 | 89.73 ▲3.15 | 36.81 ▼12.08 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 1.97 ▼0.05 | 35.20 ▼4.88 | 34.23 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.02 ▲0.06 | 677.11 ▼19.13 | 63.08 ▼10.43 |
Media Library /wp-admin/upload.php | 1,433 ▲36 | 4.20 ▲0.04 | 98.35 ▼9.23 | 44.30 ▼0.25 |
All items /wp-admin/edit.php?post_type=announcements | 1,115 | 1.90 | 30.97 | 29.92 |
Apollo Bar /wp-admin/options-general.php?page=apollo-bar/includes/apollo-bar-options.php | 1,267 | 2.57 | 48.73 | 31.72 |
Add New /wp-admin/post-new.php?post_type=announcements | 2,253 | 7.78 | 168.59 | 62.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=apollo-bar/includes/apollo-bar-options.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=apollo-bar/includes/apollo-bar-options.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=apollo-bar/includes/apollo-bar-options.php
- > Notice in wp-content/plugins/apollo-bar/includes/apollo-bar-options.php+72
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apollo-bar/apollo-bar.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apollo-bar/includes/apollo-bar-options.php:126
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: announcements, notification bar, infobar, hellobar, bar...
apollo-bar/apollo-bar.php Passed 13 tests
The entry point to "Apollo Bar" version 1.2 is a PHP file that has certain tags in its header comment area
114 characters long description:
Apollo Bar is a simple announcements plugin that allows you to create colorful notification bars for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,241 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 48 | 154 | 485 |
PHP | 2 | 80 | 55 | 357 |
PO File | 3 | 114 | 117 | 309 |
JavaScript | 4 | 24 | 21 | 90 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/apollo-bar-big.png | 2.25KB | 1.11KB | ▼ 50.78% |
images/apollo-bar-logo.png | 2.38KB | 0.65KB | ▼ 72.83% |
images/apollo-bar-small.png | 1.96KB | 1.07KB | ▼ 45.59% |
images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/noisy-texture.png | 9.15KB | 4.29KB | ▼ 53.05% |