Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.85ms] Passed 4 tests
This is a short check of server-side resources used by GridPics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.57 ▲6.43 |
Dashboard /wp-admin | 3.40 ▲0.05 | 50.15 ▼9.51 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.69 ▼5.45 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.56 ▼22.86 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 42.96 ▲6.60 |
Add New /wp-admin/post-new.php?post_type=gridpic | 3.37 | 47.62 |
GridPics /wp-admin/edit.php?post_type=gridpic | 3.36 | 41.47 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/gridpics/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GridPics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲157 | 13.93 ▼0.45 | 9.81 ▲7.77 | 46.38 ▲6.68 |
Dashboard /wp-admin | 2,248 ▲45 | 5.83 ▲0.95 | 101.33 ▲3.15 | 41.04 ▼2.25 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.12 ▲0.11 | 34.81 ▼5.60 | 34.41 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,578 ▲47 | 23.12 ▲0.05 | 675.70 ▼64.09 | 57.58 ▼4.42 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.26 ▲0.04 | 109.56 ▲11.61 | 47.74 ▲1.97 |
Add New /wp-admin/post-new.php?post_type=gridpic | 1,629 | 3.58 | 64.79 | 31.12 |
GridPics /wp-admin/edit.php?post_type=gridpic | 1,071 | 1.99 | 29.78 | 29.88 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× 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/gridpics/CPT.php:289
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The GridPics edit screen), #2 (A view of all upload pictures into GridPics), #3 (The output of [gridpics rows="2" columns="2"])
gridpics/gridPic.php 92% from 13 tests
The main PHP file in "GridPics" ver. 1.1 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 ("gridpics.php" instead of "gridPic.php")
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 detected515 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 408 | 357 | 435 |
CSS | 1 | 1 | 0 | 42 |
JavaScript | 1 | 1 | 0 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected