Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.16ms] Passed 4 tests
Analyzing server-side resources used by Galleries Markers
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.37 ▲0.37 |
Dashboard /wp-admin | 3.47 ▲0.13 | 47.19 ▼12.05 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 50.10 ▲1.96 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 94.65 ▲1.10 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 34.57 ▲2.01 |
Settings /wp-admin/edit.php?post_type=galleries-markers&page=gallery-markers-setting | 3.37 | 33.29 |
All galleries /wp-admin/edit.php?post_type=galleries-markers | 3.48 | 42.09 |
Add New /wp-admin/post-new.php?post_type=galleries-markers | 3.48 | 45.89 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
galleries-markers-demo |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Galleries Markers: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 13.29 ▼1.01 | 1.78 ▲0.05 | 43.12 ▲2.19 |
Dashboard /wp-admin | 2,260 ▲74 | 5.05 ▲0.10 | 103.11 ▼12.67 | 39.95 ▲0.50 |
Posts /wp-admin/edit.php | 2,153 ▲64 | 2.32 ▲0.33 | 41.28 ▲3.91 | 35.05 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,576 ▲48 | 23.48 ▲0.16 | 591.22 ▼101.92 | 32.06 ▼20.21 |
Media Library /wp-admin/upload.php | 1,494 ▲109 | 4.53 ▲0.33 | 100.82 ▼11.10 | 41.97 ▼6.88 |
Settings /wp-admin/edit.php?post_type=galleries-markers&page=gallery-markers-setting | 925 | 1.99 | 26.57 | 27.08 |
All galleries /wp-admin/edit.php?post_type=galleries-markers | 1,660 | 2.31 | 34.86 | 31.30 |
Add New /wp-admin/post-new.php?post_type=galleries-markers | 1,668 | 4.18 | 71.55 | 32.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- galleries-markers-demo
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/galleries-markers/metabox/slides/tmpl/slides.tpl.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/galleries-markers/admin/setting.php:133
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/galleries-markers/metabox/slides/tmpl/slides.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/galleries-markers/templates/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'Galleries_Markers_Meta_Box' not found in wp-content/plugins/galleries-markers/metabox/slides/slides.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=galleries-markers
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=galleries-markers - Access to XMLHttpRequest at 'javascript:;' from origin '' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, https, chrome-untrusted.
- > GET request to /wp-admin/post-new.php?post_type=galleries-markers
- > Network (severe)
javascript:; - Failed to load resource: net::ERR_FAILED
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: nodes on image, gallery node, image node, slider node, images nodes...
galleries-markers/galleries-markers.php Passed 13 tests
"Galleries Markers" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
77 characters long description:
Galleries Markers - Create more Nodes on more images and display with slider.
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 detected2,496 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 132 | 183 | 945 |
JavaScript | 8 | 114 | 198 | 588 |
CSS | 3 | 6 | 33 | 583 |
Sass | 2 | 2 | 11 | 360 |
SVG | 1 | 0 | 0 | 19 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 42 | 97.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.33% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin