Benchmarks
Plugin footprint 65% 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.07MB] [CPU: ▼6.18ms] Passed 4 tests
A check of server-side resources used by Projects Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.50 ▼4.02 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.08 ▼6.87 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 52.16 ▼4.02 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 101.37 ▼9.80 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.97 ▲4.09 |
Add New /wp-admin/admin.php?page=project-new | 3.27 | 34.89 |
Projects Gallery /wp-admin/admin.php?page=projects | 3.24 | 32.66 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_projects |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
pg_db_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Projects Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 14.20 ▼0.32 | 13.90 ▲12.28 | 50.85 ▲3.93 |
Dashboard /wp-admin | 2,222 ▲42 | 5.64 ▲0.11 | 91.26 ▼0.19 | 46.09 ▲5.15 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 1.94 ▼0.08 | 41.86 ▲3.62 | 38.35 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.80 ▲0.52 | 665.55 ▼18.24 | 58.74 ▲1.88 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.17 ▼0.01 | 122.17 ▲20.74 | 57.14 ▲11.76 |
Add New /wp-admin/admin.php?page=project-new | 1,019 | 2.04 | 27.04 | 37.76 |
Projects Gallery /wp-admin/admin.php?page=projects | 902 | 2.03 | 25.23 | 30.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_projects
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- pg_db_version
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=projects
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=projects
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #1 (screenshot-1.jpg) image required
projects-gallery/project-gallery.php 92% from 13 tests
The main PHP file in "Projects Gallery" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("projects-gallery.php" instead of "project-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,773 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,364 | 355 | 7,329 |
PHP | 2 | 18 | 23 | 443 |
JavaScript | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 33.33% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/main.png | 15.49KB | 5.98KB | ▼ 61.40% |