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 gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.75ms] Passed 4 tests
Server-side resources used by Women's Refuge Shielded Site
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.34 ▲0.94 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.97 ▼2.93 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 53.03 ▲4.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 98.84 ▲7.30 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.13 ▲1.00 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_wrss_widget |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Women's Refuge Shielded Site
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲74 | 13.29 ▼1.30 | 5.16 ▲3.11 | 42.93 ▲2.16 |
Dashboard /wp-admin | 2,211 ▲22 | 4.83 ▼0.10 | 99.69 ▼11.47 | 35.97 ▼4.58 |
Posts /wp-admin/edit.php | 2,091 ▲5 | 2.00 ▲0.02 | 38.12 ▲0.33 | 31.42 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,530 ▼8 | 22.99 ▼0.41 | 633.55 ▲38.94 | 65.32 ▼1.92 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.24 ▲0.02 | 95.59 ▼19.92 | 42.04 ▼0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_wrss_widget
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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 | 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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/womens-refuge-shielded-site/includes/class-wrss_widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/womens-refuge-shielded-site/includes/class-wrss-widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: womens refuge, shielded site, aotearoa, new zealand, charity
womens-refuge-shielded-site/womens_refuge_shielded_site.php 85% from 13 tests
"Women's Refuge Shielded Site" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("womens-refuge-shielded-site.php" instead of "womens_refuge_shielded_site.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin585 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 81 | 266 | 283 |
PO File | 4 | 44 | 44 | 160 |
JavaScript | 2 | 0 | 0 | 88 |
Markdown | 2 | 29 | 0 | 53 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/large-logo.png | 8.47KB | 3.51KB | ▼ 58.55% |
img/small-logo.png | 4.83KB | 2.48KB | ▼ 48.72% |
img/button-logo.png | 5.30KB | 2.58KB | ▼ 51.38% |
img/big-logo.png | 5.84KB | 5.85KB | 0.00% |