Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.96ms] Passed 4 tests
An overview of server-side resources used by PrettyGallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 24.70 ▼15.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.51 ▼3.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.44 ▲4.69 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.02 ▼14.51 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.35 ▲1.03 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by PrettyGallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 13.58 ▼0.80 | 8.43 ▲6.67 | 43.54 ▼1.26 |
Dashboard /wp-admin | 2,206 ▲21 | 5.88 ▲0.00 | 100.41 ▼2.53 | 41.44 ▼2.75 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.05 | 39.64 ▲2.62 | 35.34 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,519 ▼9 | 23.36 ▲5.20 | 686.86 ▲82.16 | 55.78 ▲5.76 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▼0.03 | 99.13 ▲3.39 | 41.07 ▼2.14 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/prettygallery/prettygallery.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: jquery modal box, gallery modal box, gallery shortcode, gallery, javascript gallery...
prettygallery/prettygallery.php Passed 13 tests
This is the main PHP file of "PrettyGallery" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Integrate Wordpress default gallery shortcode with jquery modal popup.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected192 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 45 | 143 |
CSS | 1 | 5 | 7 | 48 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 13.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/border.png | 0.11KB | 0.10KB | ▼ 7.14% |
css/images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
css/images/overlay.png | 0.18KB | 0.15KB | ▼ 15.93% |
css/images/controls.png | 2.83KB | 1.28KB | ▼ 54.82% |