Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/artistpress/admin/views/artist-press-post-types.php+345
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.68MB] [CPU: ▲2.74ms] Passed 4 tests
This is a short check of server-side resources used by ArtistPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.66 | 42.90 ▲1.67 |
Dashboard /wp-admin | 4.03 ▲0.73 | 51.78 ▲2.57 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 52.98 ▲4.27 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 87.62 ▲2.45 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 39.28 ▲7.83 |
ArtistPress /wp-admin/admin.php?page=artist-press | 3.86 | 35.97 |
Artists /wp-admin/edit.php?post_type=artist | 3.95 | 39.73 |
Venues /wp-admin/edit.php?post_type=venue | 3.95 | 37.98 |
Galleries /wp-admin/edit.php?post_type=artistpress-gallery | 3.95 | 38.51 |
Settings /wp-admin/admin.php?page=artistpress-settings | 3.86 | 35.51 |
Shows /wp-admin/edit.php?post_type=show | 3.95 | 39.07 |
Server storage [IO: ▲1.70MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 11 new options
New WordPress options |
---|
artistpress_gallery_settings |
theysaidso_admin_options |
artistpress_artist_settings |
artistpress_show_settings |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
artistpress_upgrade_settings |
can_compress_scripts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ArtistPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲91 | 14.70 ▲0.51 | 1.89 ▼0.26 | 40.50 ▼2.78 |
Dashboard /wp-admin | 2,249 ▲75 | 5.59 ▲0.01 | 95.22 ▼1.10 | 41.73 ▼3.23 |
Posts /wp-admin/edit.php | 2,084 ▼19 | 1.95 ▼0.06 | 39.39 ▼1.30 | 34.04 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 22.77 ▼0.35 | 684.67 ▲45.66 | 53.56 ▲1.82 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.15 ▼0.01 | 100.61 ▲2.79 | 41.21 ▼0.45 |
ArtistPress /wp-admin/admin.php?page=artist-press | 1,022 | 2.15 | 23.36 | 34.71 |
Artists /wp-admin/edit.php?post_type=artist | 1,128 | 1.94 | 32.53 | 29.74 |
Venues /wp-admin/edit.php?post_type=venue | 1,131 | 1.90 | 35.87 | 31.21 |
Galleries /wp-admin/edit.php?post_type=artistpress-gallery | 1,113 | 1.91 | 34.22 | 29.87 |
Settings /wp-admin/admin.php?page=artistpress-settings | 1,034 | 2.00 | 23.54 | 29.68 |
Shows /wp-admin/edit.php?post_type=show | 1,131 | 1.94 | 32.23 | 31.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- db_upgraded
- widget_recent-comments
- artistpress_show_list_settings
- artistpress_upgrade_settings
- widget_theysaidso_widget
- artistpress_show_settings
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- artistpress_gallery_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/artistpress/public/views/shortcodes/untitled.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artistpress/public/views/artist-press-templates.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/artistpress/admin/includes/metaboxes/meta_box.php:4
- > 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 93% from 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
10 plugin tags: artist, shows, gallery, custom post types, event...
artistpress/artist-press.php 85% from 13 tests
This is the main PHP file of "ArtistPress" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("artistpress.php" instead of "artist-press.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,209 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 984 | 1,119 | 3,644 |
CSS | 12 | 152 | 241 | 2,454 |
SVG | 8 | 0 | 0 | 808 |
JavaScript | 12 | 237 | 271 | 303 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 56.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 43.75% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.38MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/includes/images/close.png | 0.27KB | 0.29KB | 0.00% |
public/includes/images/next.png | 1.32KB | 1.58KB | 0.00% |
admin/includes/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/includes/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
admin/includes/metaboxes/images/sprite.png | 6.06KB | 2.18KB | ▼ 64.10% |