Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Compile error in wp-content/plugins/imagine/imagine-ajax.php+647
'break' not in the 'loop' or 'switch' context
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.22ms] Passed 4 tests
Analyzing server-side resources used by Imagine
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.75 ▲1.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.90 ▲1.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.00 ▼4.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.89 ▼28.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.29 ▼0.10 |
Server storage [IO: ▲0.94MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Imagine
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.12 | 1.97 ▲0.21 | 42.75 ▼3.89 |
Dashboard /wp-admin | 2,198 ▲27 | 5.60 ▼0.05 | 92.37 ▲3.28 | 42.49 ▼4.26 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▼0.00 | 37.46 ▲1.91 | 36.36 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.12 ▲0.06 | 652.77 ▼19.62 | 54.96 ▼6.77 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▲0.04 | 102.84 ▼9.67 | 46.45 ▼1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/imagine/admin/template-placeholder.php
- 45× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: tempinfo in wp-content/plugins/imagine/admin/edit-template.php on line 9
- > PHP Notice
Undefined variable: tempinfo in wp-content/plugins/imagine/admin/edit-template.php on line 7
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/imagine/admin/edit-gallery.php on line 7
- > PHP Notice
Trying to get property 'tempName' of non-object in wp-content/plugins/imagine/admin/edit-template.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/imagine/admin/edit-album.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/imagine/admin/admin-gallery.php:13
- > PHP Notice
Undefined variable: tempinfo in wp-content/plugins/imagine/admin/edit-template.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/imagine/templates/imagine-gallery-wall.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imagine/modules/imagine-meta-box.php:19
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/imagine/templates/imagine-album-minified.php:8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: gallery, images, ajax, albums, pictures...
imagine/index.php 85% from 13 tests
The entry point to "Imagine" version 0.99.9 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("imagine.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although 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
Success! There were no dangerous files found in this plugin7,534 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 645 | 549 | 2,456 |
SVG | 1 | 1 | 1 | 2,213 |
PHP | 32 | 607 | 278 | 2,031 |
CSS | 7 | 57 | 11 | 618 |
PO File | 1 | 88 | 119 | 193 |
XML | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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 | 20 | |
▷ Named functions | 20 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/imagine-logo-400px.png | 124.61KB | 35.01KB | ▼ 71.90% |
img/imagine-logo-100px.png | 15.90KB | 5.85KB | ▼ 63.20% |
templates/images/shadow.png | 30.08KB | 15.52KB | ▼ 48.41% |
img/imagine-logo-200px.png | 46.22KB | 13.82KB | ▼ 70.11% |
templates/images/nav.png | 1.69KB | 0.45KB | ▼ 73.12% |