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.03MB] [CPU: ▼6.57ms] Passed 4 tests
Server-side resources used by Memory Game (Memorama)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.23 ▼1.14 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.34 ▲0.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.42 ▼6.99 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.69 ▼16.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.45 ▼2.00 |
Memory Game /wp-admin/edit.php?post_type=memorygame | 3.30 | 34.75 |
New Imagen /wp-admin/post-new.php?post_type=memorygame | 3.31 | 46.43 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Memory Game (Memorama)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲188 | 13.52 ▼1.23 | 5.71 ▲3.93 | 45.38 ▲1.17 |
Dashboard /wp-admin | 2,230 ▲55 | 5.87 ▼0.03 | 103.34 ▼18.46 | 42.80 ▼2.64 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▼0.02 | 34.11 ▲0.59 | 34.34 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 18.26 ▼5.21 | 597.17 ▼86.77 | 55.99 ▲0.36 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.21 ▼0.05 | 95.74 ▼2.24 | 44.56 ▲0.52 |
Memory Game /wp-admin/edit.php?post_type=memorygame | 1,077 | 1.98 | 31.25 | 29.44 |
New Imagen /wp-admin/post-new.php?post_type=memorygame | 1,618 | 3.98 | 65.53 | 34.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/memory-game/memorygame.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== memory-game ===
) - Screenshots: Please add an image for screenshot #1 (Selecciona las imagenes para mostrar en el juego memorama , select to image to use Memory game)
memory-game/memorygame.php 92% from 13 tests
The principal PHP file in "Memory Game (Memorama)" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("memory-game.php" instead of "memorygame.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin211 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 18 | 84 |
JavaScript | 1 | 21 | 3 | 80 |
CSS | 1 | 2 | 0 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.66MB with 0.50MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 674.91KB | 161.48KB | ▼ 76.07% |