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.01MB] [CPU: ▼2.52ms] Passed 4 tests
This is a short check of server-side resources used by Retro Game Emulator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.29 ▼2.49 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.96 ▼1.29 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.60 ▲0.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.85 ▼6.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.13 ▲3.59 |
Retro Game Emulator /wp-admin/options-general.php?page=retro-game-emulator | 3.24 | 30.33 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Retro Game Emulator: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 15.40 ▲1.03 | 14.75 ▲13.10 | 41.32 ▼0.26 |
Dashboard /wp-admin | 2,207 ▲16 | 5.86 ▲0.97 | 100.73 ▼2.81 | 41.99 ▼0.80 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.05 | 33.55 ▼1.73 | 34.16 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.31 ▼4.80 | 586.46 ▼93.67 | 51.17 ▼9.85 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.01 | 97.52 ▼13.98 | 40.82 ▼8.44 |
Retro Game Emulator /wp-admin/options-general.php?page=retro-game-emulator | 814 | 2.05 | 23.75 | 35.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/retro-game-emulator/retro-game-emulator.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: romsArray in wp-content/plugins/retro-game-emulator/shortcode-template.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/retro-game-emulator/options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/retro-game-emulator/shortcode-template.php:8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/retro-game-emulator/shortcode-template.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (Screenshot of player.) image not found
retro-game-emulator/retro-game-emulator.php 92% from 13 tests
"Retro Game Emulator" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected296 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 23 | 176 |
JavaScript | 2 | 25 | 6 | 120 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 4.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 184.01KB | 48.85KB | ▼ 73.45% |