Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.16ms] Passed 4 tests
A check of server-side resources used by Game Review Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.95 ▼10.70 |
Dashboard /wp-admin | 3.39 ▲0.04 | 45.78 ▼14.43 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.67 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.36 ▼0.15 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.53 ▲5.71 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Game Review Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲61 | 14.32 ▲0.08 | 1.89 ▼0.69 | 38.54 ▼6.72 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▲0.02 | 98.52 ▼6.44 | 42.99 ▲0.06 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.05 | 40.89 ▲2.90 | 37.00 ▼0.19 |
Add New Post /wp-admin/post-new.php | 6,374 ▲4,848 | 27.82 ▲4.64 | 1,015.60 ▲267.23 | 44.10 ▼10.56 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.22 ▲0.06 | 103.54 ▼17.62 | 42.43 ▼3.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_post_meta() in wp-content/plugins/game-review-block/src/review-box/callback.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function register_post_meta() in wp-content/plugins/game-review-block/src/review-box/callback.php:55
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: review, shortscore, rating, schema, block
game-review-block/game-review.php 92% from 13 tests
The principal PHP file in "Game Review Block" v. 3.9.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("game-review-block.php" instead of "game-review.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected19,885 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 8 | 0 | 0 | 18,987 |
PHP | 7 | 94 | 41 | 368 |
JavaScript | 11 | 39 | 82 | 304 |
Sass | 5 | 58 | 0 | 222 |
CSS | 4 | 1 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 12 | 80.00% |
▷ Anonymous functions | 3 | 20.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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/review-box/assets/shortscore-1200x1600.png | 77.21KB | 28.83KB | ▼ 62.66% |
build/images/shortscore-600x800.4f8c3a49.png | 31.30KB | 14.03KB | ▼ 55.20% |
src/review-box/assets/shortscore-600x800.png | 31.30KB | 14.03KB | ▼ 55.20% |
build/images/shortscore-1200x1600.0bbc6a07.png | 77.21KB | 28.83KB | ▼ 62.66% |
src/review-box/assets/shortscore-300x400.png | 13.19KB | 6.82KB | ▼ 48.33% |