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.01MB] [CPU: ▼8.08ms] Passed 4 tests
Analyzing server-side resources used by Marzo Negro Ribbon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.40 ▼1.63 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.49 ▼14.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.82 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.23 ▼13.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.59 ▼2.90 |
Marzo Negro /wp-admin/options-general.php?page=marzo-negro-ribbon/marzo-negro-ribbon.php | 3.20 | 40.26 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
marzo_negro_language |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Marzo Negro Ribbon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.27 ▼0.28 | 1.65 ▲0.18 | 46.74 ▲4.50 |
Dashboard /wp-admin | 2,196 ▲16 | 5.54 ▼0.08 | 85.54 ▼5.68 | 37.63 ▼0.53 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.04 ▲0.08 | 36.55 ▲1.40 | 33.43 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.49 ▲0.33 | 667.67 ▼16.84 | 55.91 ▼13.87 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.16 ▼0.03 | 96.36 ▼9.60 | 42.72 ▼1.77 |
Marzo Negro /wp-admin/options-general.php?page=marzo-negro-ribbon/marzo-negro-ribbon.php | 843 | 2.03 | 27.89 | 25.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- marzo_negro_language
- widget_recent-posts
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)
Good news, no errors were detected
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marzo-negro-ribbon/marzo-negro-ribbon.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Here's how the ribbon will appear on your website. Will link to the #MarzoNegro facebook site.), #2 (Admin panel)
- Tested up to: Version not formatted correctly
marzo-negro-ribbon/marzo-negro-ribbon.php Passed 13 tests
The main PHP script in "Marzo Negro Ribbon" version 1.0 is automatically included on every request by WordPress
113 characters long description:
When activated, this plugin will put a #MarzoNegro or #BlackMarch ribbon on the top right corner of your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected60 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 13 | 60 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 38.04KB | 10.57KB | ▼ 72.21% |
black-march-ribbon.png | 5.43KB | 2.27KB | ▼ 58.22% |
screenshot-1.png | 155.83KB | 51.92KB | ▼ 66.68% |
marzo-negro-ribbon.png | 5.56KB | 2.31KB | ▼ 58.39% |