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.03MB] [CPU: ▼6.98ms] Passed 4 tests
An overview of server-side resources used by Meetup.com Venues
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 44.02 ▲2.58 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.85 ▼22.72 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.13 ▲0.84 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.44 ▼6.37 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.05 ▲0.35 |
Shortcode Generator /wp-admin/admin.php?page=meetup-venues | 3.25 | 32.58 |
Settings /wp-admin/admin.php?page=meetup-venues-settings | 3.23 | 33.89 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
meetup_api_key |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Meetup.com Venues
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.92 ▼0.26 | 2.35 ▲0.64 | 38.52 ▼4.16 |
Dashboard /wp-admin | 2,222 ▲44 | 5.65 ▼0.07 | 89.83 ▼25.28 | 41.42 ▼5.10 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.01 ▼0.01 | 39.66 ▲4.97 | 36.55 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.22 ▼0.76 | 617.74 ▼59.02 | 56.81 ▲5.90 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.30 ▲0.07 | 97.06 ▼3.82 | 46.90 ▼3.42 |
Shortcode Generator /wp-admin/admin.php?page=meetup-venues | 1,040 | 1.90 | 27.70 | 35.35 |
Settings /wp-admin/admin.php?page=meetup-venues-settings | 815 | 2.00 | 22.79 | 26.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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- meetup_api_key
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=meetup-venues-settings
- > Notice in wp-content/plugins/meetup-venues/options.php+15
Undefined property: MeetupVenuesAdmin::$api_key
SRP 0% 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/meetup-venues/venues.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
scandir(MEETUP_VENUES_TEMPLATES): failed to open dir: No such file or directory in wp-content/plugins/meetup-venues/venues.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/meetup-venues/meetup-venues.php:14
- > PHP Warning
scandir(): (errno 2): No such file or directory in wp-content/plugins/meetup-venues/venues.php on line 9
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/meetup-venues/venues.php on line 9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/meetup-venues/options.php:15
- > PHP Warning
Use of undefined constant MEETUP_VENUES_TEMPLATES - assumed 'MEETUP_VENUES_TEMPLATES' (this will throw an Error in a future version of PHP) in wp-content/plugins/meetup-venues/venues.php on line 9
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #2 is required in meetup-venues/assets to your readme.txt
- Plugin Name: Please specify the plugin name on the first line (
=== meetup-venues ===
)
meetup-venues/meetup-venues.php Passed 13 tests
The principal PHP file in "Meetup.com Venues" v. 0.02 is loaded by WordPress automatically on each request
46 characters long description:
Show Meetup.com events that are venue specific
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,623 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 240 | 947 | 1,454 |
JavaScript | 1 | 8 | 7 | 118 |
CSS | 1 | 11 | 1 | 35 |
HTML | 2 | 0 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 61 | 88.41% |
▷ Public methods | 37 | 53.62% |
▷ Protected methods | 31 | 44.93% |
▷ Private methods | 1 | 1.45% |
Functions | 11 | |
▷ Named functions | 1 | 9.09% |
▷ Anonymous functions | 10 | 90.91% |
Constants | 41 | |
▷ Global constants | 4 | 9.76% |
▷ Class constants | 37 | 90.24% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin