Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.66ms] Passed 4 tests
Analyzing server-side resources used by Ruven Themes: Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.16 ▲1.56 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.52 ▼3.09 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.67 ▲1.78 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.39 ▼10.65 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.93 ▲1.56 |
Categories /wp-admin/edit-tags.php?taxonomy=gallery-category&post_type=gallery | 3.28 | 34.90 |
Add New /wp-admin/post-new.php?post_type=gallery | 3.44 | 51.96 |
Galleries /wp-admin/edit.php?post_type=gallery | 3.33 | 35.75 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/ruven-themes-gallery/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/ruven-themes-gallery/assets/icon-128\303\227128.png"
- (new file) "wp-content/plugins/ruven-themes-gallery/assets/icon-256\303\227256.png"
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Ruven Themes: Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.31 ▼1.44 | 1.71 ▲0.01 | 41.83 ▲0.99 |
Dashboard /wp-admin | 2,234 ▲49 | 5.83 ▲0.98 | 98.06 ▼4.38 | 36.73 ▼3.26 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.06 | 41.18 ▲6.73 | 34.49 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,564 ▲43 | 23.32 ▲0.09 | 608.88 ▼26.09 | 51.53 ▲0.30 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.19 ▼0.01 | 93.91 ▼8.53 | 42.15 ▼2.87 |
Categories /wp-admin/edit-tags.php?taxonomy=gallery-category&post_type=gallery | 1,293 | 2.14 | 26.03 | 27.50 |
Add New /wp-admin/post-new.php?post_type=gallery | 2,830 | 7.91 | 178.03 | 74.43 |
Galleries /wp-admin/edit.php?post_type=gallery | 1,143 | 1.95 | 30.59 | 30.80 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- 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 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ruven-themes-gallery/ruven-themes-gallery.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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
2 plugin tags: gallery, custom post type
ruven-themes-gallery/ruven-themes-gallery.php Passed 13 tests
"Ruven Themes: Gallery" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Extends the functionality of Ruven Themes by adding a Gallery post type
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected93 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 26 | 93 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128×128.png | 4.56KB | 2.23KB | ▼ 51.08% |
assets/icon-256×256.png | 4.07KB | 1.48KB | ▼ 63.59% |