Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.37ms] Passed 4 tests
An overview of server-side resources used by Favicon Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.40 ▼39.93 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.98 ▼39.85 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.47 ▼43.30 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.83 ▼82.39 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.74 ▼27.31 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
pj_favicon_generator_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Favicon Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.23 ▼1.06 | 1.73 ▼0.13 | 39.90 ▼3.16 |
Dashboard /wp-admin | 2,224 ▲39 | 4.88 ▼0.93 | 110.51 ▲0.20 | 74.87 ▲28.99 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.03 ▼0.03 | 37.61 ▼5.13 | 34.34 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,690 ▲169 | 24.66 ▲1.59 | 689.62 ▲40.18 | 53.31 ▲1.31 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.13 ▼0.10 | 100.63 ▼0.18 | 75.52 ▲29.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- pj_favicon_generator_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/favicon-generator/pj-favicon-generator.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== favicon-generator ===
) - Screenshots: Add images for these screenshots: #1 (Favicon Generator configuration screen), #2 (Shows the favicon in place)
favicon-generator/pj-favicon-generator.php 92% from 13 tests
"Favicon Generator" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("favicon-generator.php" instead of "pj-favicon-generator.php")
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
Good job! No executable or dangerous file extensions detected1,094 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 233 | 204 | 1,068 |
CSS | 1 | 2 | 0 | 26 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 5.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
4 PNG files occupy 0.33MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
menu-icon.png | 0.61KB | 0.62KB | 0.00% |
large-menu-icon.png | 1.31KB | 1.18KB | ▼ 9.93% |
screenshot-1.png | 237.48KB | 54.93KB | ▼ 76.87% |
screenshot-2.png | 97.11KB | 36.68KB | ▼ 62.23% |