Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.71ms] Passed 4 tests
An overview of server-side resources used by Crisp Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.91 ▼7.42 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.18 ▼3.75 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 46.12 ▼2.55 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 90.50 ▲4.07 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 34.25 ▲2.89 |
Add New /wp-admin/post-new.php?post_type=crispgallery | 3.40 | 48.22 |
Gallery /wp-admin/edit.php?post_type=crispgallery | 3.42 | 42.56 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Crisp Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 13.34 ▼1.34 | 4.36 ▲2.35 | 40.83 ▼4.51 |
Dashboard /wp-admin | 2,236 ▲44 | 4.91 ▼0.05 | 97.58 ▼22.70 | 39.86 ▼4.15 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.01 ▲0.05 | 40.60 ▲2.27 | 35.92 ▲4.01 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 23.35 ▲0.08 | 678.26 ▼29.34 | 55.87 ▲0.89 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.23 ▼0.05 | 95.66 ▼3.08 | 41.07 ▲0.09 |
Add New /wp-admin/post-new.php?post_type=crispgallery | 2,098 | 4.25 | 91.59 | 84.52 |
Gallery /wp-admin/edit.php?post_type=crispgallery | 1,257 | 3.79 | 57.50 | 27.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- 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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 4× 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/crisp-gallery/inc/gallery.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crisp-gallery/inc/crispgallery-metabox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/crisp-gallery/crispgallery.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/crisp-gallery/inc/crispgallery-shortcode.php:111
- > 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
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:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
crisp-gallery/crispgallery.php 85% from 13 tests
The main PHP script in "Crisp Gallery" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crisp-gallery.php" instead of "crispgallery.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected904 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 88 | 111 | 422 |
CSS | 4 | 46 | 0 | 218 |
JavaScript | 4 | 38 | 12 | 129 |
PO File | 1 | 49 | 54 | 109 |
Markdown | 1 | 12 | 0 | 26 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/theme-banner.png | 5.53KB | 1.94KB | ▼ 64.88% |
css/images/gallery-previous.png | 1.26KB | 0.37KB | ▼ 70.71% |
images/close.png | 0.27KB | 0.29KB | 0.00% |
css/images/gallery-next.png | 0.43KB | 0.36KB | ▼ 16.33% |
css/images/plugin-support.png | 3.37KB | 1.14KB | ▼ 66.04% |