Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼0.46ms] Passed 4 tests
This is a short check of server-side resources used by Game Showcase
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 42.10 ▼1.83 |
Dashboard /wp-admin | 3.62 ▲0.31 | 65.33 ▲7.29 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 61.06 ▲10.36 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 93.58 ▼12.14 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 40.37 ▲4.83 |
Genres /wp-admin/edit-tags.php?taxonomy=game_genre&post_type=game | 3.48 | 44.41 |
All Games /wp-admin/edit.php?post_type=game | 3.53 | 44.82 |
Add New /wp-admin/post-new.php?post_type=game | 6.22 | 90.22 |
Showcases /wp-admin/edit-tags.php?taxonomy=game_showcase&post_type=game | 3.48 | 41.82 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_game-showcase-widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Game Showcase
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲287 | 14.87 ▲0.50 | 6.96 ▲3.90 | 42.54 ▲2.83 |
Dashboard /wp-admin | 2,363 ▲186 | 6.23 ▲0.66 | 120.82 ▲26.58 | 38.20 ▼8.00 |
Posts /wp-admin/edit.php | 2,296 ▲196 | 3.48 ▲1.54 | 70.90 ▲33.60 | 36.75 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.41 ▼0.40 | 676.38 ▼10.02 | 65.17 ▲8.76 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.23 ▲0.02 | 105.20 ▼4.11 | 49.47 ▲3.37 |
Genres /wp-admin/edit-tags.php?taxonomy=game_genre&post_type=game | 1,473 | 3.25 | 46.74 | 33.14 |
All Games /wp-admin/edit.php?post_type=game | 1,347 | 3.41 | 46.62 | 29.72 |
Add New /wp-admin/post-new.php?post_type=game | 6,243 | 24.90 | 878.05 | 29.63 |
Showcases /wp-admin/edit-tags.php?taxonomy=game_showcase&post_type=game | 1,445 | 3.26 | 42.92 | 32.39 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_game-showcase-widget
- db_upgraded
- widget_recent-posts
- 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/game-showcase/includes/class-game-showcase-widget.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/game-showcase/public/partials/single-game.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: games, showcase
game-showcase/game-showcase.php Passed 13 tests
The main PHP file in "Game Showcase" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
Adds the ability to showcase games on your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,112 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 222 | 635 | 835 |
JavaScript | 4 | 15 | 22 | 95 |
Sass | 2 | 16 | 0 | 94 |
CSS | 4 | 18 | 18 | 88 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 2 | 3.85% |
▷ Public methods | 45 | 86.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.46% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected