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.01MB] [CPU: ▼2.15ms] Passed 4 tests
Analyzing server-side resources used by Meetup Winner!
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.75 ▼2.32 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.25 ▼7.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.67 ▼0.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.66 ▲0.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.84 ▲3.64 |
Meetup Winner! /wp-admin/options-general.php?page=meetup-winner | 3.20 | 28.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Meetup Winner!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.23 ▼1.15 | 1.69 ▼0.11 | 37.80 ▼4.86 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.98 | 111.11 ▲8.24 | 41.09 ▲3.17 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.02 | 39.16 ▲3.96 | 36.19 ▲4.95 |
Add New Post /wp-admin/post-new.php | 1,536 ▲19 | 23.25 ▲5.58 | 644.37 ▲49.49 | 49.60 ▼0.18 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.01 | 92.38 ▼3.26 | 42.25 ▲1.11 |
Meetup Winner! /wp-admin/options-general.php?page=meetup-winner | 786 | 2.18 | 25.01 | 27.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meetup-winner/meetup-winner.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== meetup-winner ===
)
meetup-winner/meetup-winner.php 92% from 13 tests
The principal PHP file in "Meetup Winner!" v. 0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 185 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin91 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 29 | 62 |
Markdown | 1 | 16 | 0 | 21 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 8 | |
▷ Named functions | 8 | 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
There are no PNG files in this plugin