Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼8.85ms] Passed 4 tests
Server-side resources used by Projects showroom
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 41.97 ▲4.24 |
Dashboard /wp-admin | 3.47 ▲0.12 | 46.68 ▼13.56 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.83 ▼5.47 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 82.03 ▼20.61 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.72 ▲6.61 |
All Projects /wp-admin/edit.php?post_type=psr | 3.43 | 38.15 |
Projects Category /wp-admin/edit-tags.php?taxonomy=projects&post_type=psr | 3.39 | 30.18 |
Projects options /wp-admin/options-general.php?page=psr | 3.36 | 33.94 |
Help /wp-admin/edit.php?post_type=psr&page=psr_help | 3.36 | 29.14 |
Add Project /wp-admin/post-new.php?post_type=psr | 3.49 | 51.81 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
psr_plugin_version |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Projects showroom
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 13.66 ▼0.99 | 8.74 ▲7.28 | 42.24 ▲2.06 |
Dashboard /wp-admin | 2,253 ▲76 | 5.74 ▲0.05 | 83.53 ▼2.78 | 37.90 ▼4.55 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 2.31 ▲0.31 | 36.34 ▲2.94 | 30.35 ▼7.72 |
Add New Post /wp-admin/post-new.php | 1,573 ▲48 | 23.08 ▼0.52 | 652.44 ▼7.70 | 35.48 ▼15.32 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.52 ▲0.39 | 111.83 ▲16.16 | 48.35 ▲4.52 |
All Projects /wp-admin/edit.php?post_type=psr | 1,098 | 1.93 | 33.47 | 40.56 |
Projects Category /wp-admin/edit-tags.php?taxonomy=projects&post_type=psr | 1,345 | 2.05 | 30.46 | 25.90 |
Projects options /wp-admin/options-general.php?page=psr | 1,154 | 2.59 | 45.17 | 36.02 |
Help /wp-admin/edit.php?post_type=psr&page=psr_help | 1,001 | 2.07 | 27.36 | 29.04 |
Add Project /wp-admin/post-new.php?post_type=psr | 1,848 | 3.69 | 62.11 | 34.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query only expected one placeholder, but an array of multiple placeholders was sent. Please see Debugging in WordPress for more information. (This message was added in version 4.9.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- psr_plugin_version
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/projects-showroom/projects-showroom.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/projects-showroom/inc/psr-post-metabox.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/projects-showroom/inc/psr-settings.php:97
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/projects-showroom/inc/psr-user.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/projects-showroom/inc/psr-admin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/projects-showroom/inc/psr-shortcode.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/projects-showroom/inc/psr-types.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: showroom, projects, shortcode, project, site...
projects-showroom/projects-showroom.php 92% from 13 tests
"Projects showroom" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected1,021 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 142 | 396 | 684 |
PO File | 1 | 79 | 75 | 177 |
CSS | 2 | 7 | 3 | 114 |
JavaScript | 3 | 3 | 0 | 44 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/no-images-380-300.png | 8.75KB | 3.97KB | ▼ 54.58% |
assets/img/no-images-330-254.png | 10.60KB | 5.15KB | ▼ 51.46% |