Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▼6.22ms] Passed 4 tests
An overview of server-side resources used by Gallery Custom Links
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 41.82 ▲2.28 |
Dashboard /wp-admin | 3.60 ▲0.26 | 52.30 ▼11.92 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 48.57 ▲2.99 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 83.74 ▼18.24 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 49.95 ▲15.40 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 3.63 | 52.87 |
Custom Links /wp-admin/admin.php?page=mgcl_settings | 3.43 | 36.52 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gallery Custom Links
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲79 | 13.93 ▼0.64 | 1.87 ▲0.18 | 45.57 ▲8.96 |
Dashboard /wp-admin | 2,262 ▲85 | 5.78 ▲0.10 | 112.54 ▲26.49 | 45.07 ▲4.38 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 3.02 ▲1.00 | 41.65 ▲4.47 | 31.26 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,586 ▲60 | 24.34 ▲1.46 | 679.23 ▲48.72 | 35.38 ▼10.42 |
Media Library /wp-admin/upload.php | 1,480 ▲83 | 5.29 ▲1.10 | 110.67 ▲8.37 | 47.22 ▲3.81 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 5,254 | 2.54 | 33.14 | 47.92 |
Custom Links /wp-admin/admin.php?page=mgcl_settings | 1,092 | 3.92 | 75.34 | 38.23 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/gallery-custom-links/classes/core.php:3
- > PHP Fatal error
Uncaught Error: Class 'MeowCommon_Admin' not found in wp-content/plugins/gallery-custom-links/classes/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'DiDom\ode' not found in wp-content/plugins/gallery-custom-links/vendor/imangazaliev/didom/src/DiDom/DocumentFragment.php:11
- > PHP Fatal error
require(): Failed opening required 'MGCL_PATH/classes/core.php' (include_path='.:/usr/share/php') in wp-content/plugins/gallery-custom-links/classes/init.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gallery-custom-links/gallery-custom-links.php:23
- > PHP Warning
Use of undefined constant MGCL_PATH - assumed 'MGCL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-custom-links/classes/init.php on line 15
- > PHP Warning
require(MGCL_PATH/classes/core.php): failed to open stream: No such file or directory in wp-content/plugins/gallery-custom-links/classes/init.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'DiDom\ode' not found in wp-content/plugins/gallery-custom-links/vendor/imangazaliev/didom/src/DiDom/Element.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: gallery, custom, gutenberg, links
gallery-custom-links/gallery-custom-links.php 92% from 13 tests
The entry point to "Gallery Custom Links" version 2.1.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected7,003 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 1,395 | 1,976 | 5,672 |
Markdown | 5 | 596 | 0 | 1,155 |
JSON | 3 | 0 | 0 | 171 |
JavaScript | 2 | 0 | 24 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 35.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 370 | |
▷ Static methods | 58 | 15.68% |
▷ Public methods | 334 | 90.27% |
▷ Protected methods | 30 | 8.11% |
▷ Private methods | 6 | 1.62% |
Functions | 17 | |
▷ Named functions | 4 | 23.53% |
▷ Anonymous functions | 13 | 76.47% |
Constants | 33 | |
▷ Global constants | 29 | 87.88% |
▷ Class constants | 4 | 12.12% |
▷ Public constants | 4 | 100.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
No PNG files were detected