Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/gex-ratings-facepunch-style/gex-ratings-facepunch-style.php+53
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.03MB] [CPU: ▼150.62ms] Passed 4 tests
An overview of server-side resources used by Gex Ratings (Facepunch Style)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.11 | 31.88 ▼1.20 |
Dashboard /wp-admin | 3.25 ▲0.19 | 50.27 ▼0.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 40.26 ▼2.00 |
Add New Post /wp-admin/post-new.php | 4.84 ▼0.60 | 53.63 ▼599.15 |
Media Library /wp-admin/upload.php | 3.19 ▲0.18 | 38.17 ▲4.55 |
Gex Ratings /wp-admin/options-general.php?page=gex_ratings | 3.16 | 31.22 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_gex_ratings |
New WordPress options |
---|
widget_gex_ratings_statistics_widget |
gex_ratings_settings_all |
Browser metrics Passed 4 tests
Gex Ratings (Facepunch Style): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,884 ▲289 | 16.31 ▲0.76 | 13.70 ▲2.16 | 49.57 ▲0.37 |
Dashboard /wp-admin | 3,045 ▲111 | 5.97 ▲0.01 | 139.32 ▼12.61 | 111.72 ▼7.25 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.73 ▲0.02 | 62.81 ▼3.72 | 85.81 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,890 ▲390 | 15.46 ▼3.09 | 375.20 ▼11.72 | 110.40 ▼4.07 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.05 ▲0.04 | 149.96 ▼0.85 | 123.43 ▲6.33 |
Gex Ratings /wp-admin/options-general.php?page=gex_ratings | 1,418 | 2.12 | 51.80 | 101.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gex-ratings-facepunch-style/gex-ratings-facepunch-style.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/gex-ratings-facepunch-style/admin.php:11
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Ratings being displayed for a post.), #2 (Ratings being displayed for a comment.), #3 (Rating names are hidden when more than 3 different ratings are displayed to save horizontal space.), #4 (Ratings are styled using your current site theme.), #5 (Admin Page with Settings, Ratings and Statistics.)
gex-ratings-facepunch-style/gex-ratings-facepunch-style.php Passed 13 tests
"Gex Ratings (Facepunch Style)" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Add facepunch style ratings to your site posts, comments and pages.
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
Success! There were no dangerous files found in this plugin729 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 141 | 147 | 542 |
CSS | 1 | 25 | 28 | 96 |
JavaScript | 1 | 22 | 23 | 91 |
PHP code Passed 2 tests
A brief analysis 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.26 |
Average class complexity | 34.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ratings/Programming King.png | 3.21KB | 0.37KB | ▼ 88.50% |
ratings/Disagree.png | 0.64KB | 0.72KB | 0.00% |
screenshot-2.png | 35.28KB | 14.09KB | ▼ 60.06% |
ratings/Informative.png | 0.76KB | 0.83KB | 0.00% |
ratings/Friendly.png | 0.73KB | 0.83KB | 0.00% |