Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.31ms] Passed 4 tests
Analyzing server-side resources used by Flipping Cards
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.61 ▼1.08 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.24 ▲5.86 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 56.65 ▲15.22 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.01 ▼11.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.68 ▲5.56 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_flipping_cards |
wp_flipping_cards_images |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Flipping Cards
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 15.10 ▲0.76 | 1.82 ▲0.17 | 42.00 ▼4.20 |
Dashboard /wp-admin | 2,341 ▲153 | 6.39 ▲0.40 | 130.17 ▲14.64 | 93.94 ▲46.96 |
Posts /wp-admin/edit.php | 2,262 ▲173 | 3.36 ▲1.38 | 55.40 ▲17.81 | 73.66 ▲40.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼17 | 17.52 ▼0.65 | 664.51 ▼4.45 | 38.99 ▼19.17 |
Media Library /wp-admin/upload.php | 1,401 ▲19 | 4.09 ▼0.19 | 84.45 ▼12.53 | 87.24 ▲44.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/flipping-cards/flipping-cards.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/flipping-cards/views/card.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/flipping-cards/views/cards.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== flipping-cards ===
)
flipping-cards/flipping-cards.php 85% from 13 tests
The principal PHP file in "Flipping Cards" v. 1.30 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: Use only dashes and lowercase characters for the domain path ("")
- Domain Path: Prefix the domain path with a forward slash character ("/")
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
Good job! No executable or dangerous file extensions detected486 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 452 | 42 | 381 |
CSS | 2 | 70 | 0 | 105 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.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 | 12 | |
▷ Named functions | 12 | 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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/images.png | 1.49KB | 1.53KB | 0.00% |
images/fb.png | 1.59KB | 1.00KB | ▼ 37.42% |
images/icon.png | 0.26KB | 0.17KB | ▼ 32.44% |
images/save.png | 0.54KB | 0.39KB | ▼ 28.11% |
images/remove.png | 1.27KB | 1.20KB | ▼ 5.76% |