Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.38ms] Passed 4 tests
This is a short check of server-side resources used by Game Dev Quotes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.24 ▼2.47 |
Dashboard /wp-admin | 3.32 ▼0.02 | 45.99 ▼13.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.54 ▼3.01 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.08 ▼14.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.97 ▲0.11 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Game Dev Quotes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲45 | 14.08 ▼0.30 | 2.10 ▲0.28 | 52.81 ▲12.01 |
Dashboard /wp-admin | 2,186 ▲5 | 5.55 ▼0.11 | 82.75 ▼18.63 | 40.62 ▼0.53 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 32.61 ▼1.92 | 38.11 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▼0.52 | 651.55 ▼33.37 | 53.29 ▼5.29 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.25 ▲0.09 | 94.78 ▼8.89 | 39.34 ▼7.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/game-dev-quotes/nwxgdq_dialog.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/game-dev-quotes/gamedevquotes.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
game-dev-quotes/gamedevquotes.php 92% from 13 tests
The primary PHP file in "Game Dev Quotes" version 1.5.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("game-dev-quotes.php" instead of "gamedevquotes.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
Good job! No executable or dangerous file extensions detected264 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 70 | 38 | 140 |
CSS | 1 | 15 | 0 | 97 |
JavaScript | 1 | 4 | 5 | 27 |
PHP code Passed 2 tests
Analyzing 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.42 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/ps2dev.png | 1.62KB | 1.42KB | ▼ 12.52% |
screenshot1.png | 20.35KB | 9.59KB | ▼ 52.88% |
imgs/tordev.png | 0.44KB | 0.51KB | 0.00% |
screenshot2.png | 6.69KB | 6.87KB | 0.00% |
imgs/aalogo.png | 16.01KB | 5.64KB | ▼ 64.77% |