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.73MB] [CPU: ▲3.67ms] Passed 4 tests
This is a short check of server-side resources used by WP Biographia
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 45.73 ▲1.35 |
Dashboard /wp-admin | 4.07 ▲0.77 | 50.92 ▲1.70 |
Posts /wp-admin/edit.php | 4.13 ▲0.77 | 53.68 ▲6.45 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.75 | 100.94 ▲10.26 |
Media Library /wp-admin/upload.php | 3.93 ▲0.71 | 41.69 ▲5.16 |
WP Biographia /wp-admin/options-general.php?page=wp-biographia/wp-biographia.php | 3.92 | 35.27 |
Server storage [IO: ▲6.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 256 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_wp_biographiawidget |
theysaidso_admin_options |
db_upgraded |
wp_biographia_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Biographia
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲132 | 13.37 ▼1.19 | 1.58 ▼0.68 | 43.90 ▼2.20 |
Dashboard /wp-admin | 2,266 ▲78 | 5.03 ▼0.86 | 106.90 ▲5.98 | 43.03 ▲2.72 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.36 ▲0.34 | 47.63 ▲10.92 | 37.99 ▼0.32 |
Add New Post /wp-admin/post-new.php | 6,320 ▲4,796 | 19.05 ▼4.23 | 828.48 ▲126.67 | 49.97 ▼4.35 |
Media Library /wp-admin/upload.php | 1,451 ▲60 | 4.38 ▲0.19 | 100.76 ▼4.98 | 44.71 ▼1.57 |
WP Biographia /wp-admin/options-general.php?page=wp-biographia/wp-biographia.php | 1,313 | 5.01 | 63.41 | 54.05 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_wp_biographiawidget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-biographia/includes/wp-biographia-widget.php
- > /wp-content/plugins/wp-biographia/includes/wp-biographia-tags.php
- > /wp-content/plugins/wp-biographia/includes/wp-biographia-pointers.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-biographia/wp-biographia.php:69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 32 tag instead of maximum 10
- Screenshots: Screenshot #1 (Sample Widget Output) image not found
wp-biographia/wp-biographia.php 92% from 13 tests
The main file in "WP Biographia" v. 4.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,437 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,011 | 1,039 | 4,450 |
PO File | 3 | 959 | 1,310 | 2,532 |
CSS | 8 | 42 | 3 | 269 |
JavaScript | 4 | 33 | 0 | 179 |
HTML | 2 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 125.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 568.00 |
Average method complexity | 8.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 2 | 2.41% |
▷ Public methods | 80 | 96.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.61% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 3 | 25.00% |
▷ Class constants | 9 | 75.00% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
186 PNG files occupy 2.45MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/icons/square/twitter.png | 6.06KB | 6.84KB | 0.00% |
public/images/success.png | 0.43KB | 0.49KB | 0.00% |
images/linkedin.png | 49.44KB | 26.71KB | ▼ 45.98% |
public/icons/round/round_vine.png | 8.53KB | 9.80KB | 0.00% |
public/icons/archived/facebook.png | 46.57KB | 24.38KB | ▼ 47.64% |