Benchmarks
Plugin footprint 65% 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.04MB] [CPU: ▼3.83ms] Passed 4 tests
Analyzing server-side resources used by Piwik Notifier Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.20 ▼6.46 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.16 ▲6.78 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.14 ▲2.81 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.67 ▼16.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.01 ▲4.53 |
Piwik Notifier /wp-admin/options-general.php?page=wppn-settings | 3.27 | 37.07 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
wp_piwik_notifier_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Piwik Notifier Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.32 ▼0.03 | 1.75 ▼0.03 | 44.70 ▼2.15 |
Dashboard /wp-admin | 2,210 ▲33 | 5.59 ▼0.02 | 93.24 ▲1.41 | 42.61 ▲7.10 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.01 ▲0.03 | 34.28 ▼6.15 | 35.58 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 23.00 ▲4.80 | 618.86 ▲10.14 | 70.92 ▲6.17 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.21 ▲0.04 | 97.70 ▼0.99 | 41.04 ▼1.01 |
Piwik Notifier /wp-admin/options-general.php?page=wppn-settings | 986 | 1.99 | 23.76 | 27.47 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the followingThis plugin does not fully uninstall, leaving 7 options in the database
- Incomplete uninstall procedure, leaving 12 files (0.03MB) in the plugin directory
- (new file) inc/wppn-notifier-bar.php
- (new file) css/gray.css
- (new file) inc/wppn-piwik-iframe.php
- (new file) css/red.css
- (new file) readme.txt
- (new file) lang/wp-piwik-notifier-de_DE.mo
- (new file) inc/wppn-settings-page.php
- (new file) lang/wp-piwik-notifier-de_DE.po
- (new file) css/blue.css
- (new file) js/main.js
- ...
- wp_piwik_notifier_options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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 no errors were found, this is by no means 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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-piwik-notifier/wppn-config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp-piwik-notifier/inc/wppn-piwik-iframe.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-piwik-notifier/inc/wppn-settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-piwik-notifier/inc/wppn-notifier-bar.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-piwik-notifier ===
)
wp-piwik-notifier/wp-piwki-notifier.php 92% from 13 tests
This is the main PHP file of "Piwik Notifier Bar" version 0.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-piwik-notifier.php" instead of "wp-piwki-notifier.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin623 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 35 | 141 | 285 |
CSS | 3 | 15 | 0 | 264 |
PO File | 1 | 19 | 20 | 55 |
JavaScript | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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