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.16MB] [CPU: ▼9.23ms] Passed 4 tests
This is a short check of server-side resources used by Phoenix Folding@Home Stats
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.18 ▲0.23 |
Dashboard /wp-admin | 3.47 ▲0.16 | 42.80 ▼3.91 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 43.23 ▼8.03 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 81.11 ▼25.21 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.42 ▲3.48 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_phoenix_folding_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Phoenix Folding@Home Stats
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.61 ▼0.69 | 4.69 ▲3.09 | 46.10 ▲8.01 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.03 | 120.08 ▲18.10 | 45.37 ▲0.91 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 36.11 ▼5.83 | 32.74 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.32 ▲0.27 | 670.97 ▲98.04 | 60.55 ▲11.56 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.03 | 95.93 ▲1.88 | 43.34 ▲0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_phoenix_folding_widget
- can_compress_scripts
Smoke tests 75% 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 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 take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PhoenixFAH\\Stats' not found in wp-content/plugins/phoenix-folding-at-home-stats/src/StatsUser.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhoenixFAH\\Stats' not found in wp-content/plugins/phoenix-folding-at-home-stats/src/StatsTeam.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/phoenix-folding-at-home-stats/src/Widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function PhoenixFAH\\plugins_url() in wp-content/plugins/phoenix-folding-at-home-stats/src/FoldingHomeStats.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: folding, foldinghome, folding at home, table, stats...
phoenix-folding-at-home-stats/phoenix-folding-at-home-stats.php 92% from 13 tests
Analyzing the main PHP file in "Phoenix Folding@Home Stats" version 2.0.0
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin1,046 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 128 | 289 | 860 |
Markdown | 1 | 37 | 0 | 94 |
Sass | 1 | 12 | 2 | 59 |
CSS | 2 | 2 | 1 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 24.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 1 | 2.22% |
▷ Public methods | 42 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fah-logo.png | 52.23KB | 13.95KB | ▼ 73.30% |
assets/images/fah-arrows.png | 8.70KB | 3.77KB | ▼ 56.69% |