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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.89ms] Passed 4 tests
Server-side resources used by Folders for MaxGalleria
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.97 ▲0.43 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.15 ▲0.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.43 ▼5.36 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 87.29 ▼10.64 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 37.52 ▲2.53 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Folders for MaxGalleria
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.25 ▼0.12 | 1.72 ▼0.23 | 41.16 ▼4.64 |
Dashboard /wp-admin | 2,221 ▲30 | 5.85 ▲0.03 | 99.14 ▼9.91 | 40.85 ▼0.32 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▼0.05 | 39.80 ▲2.36 | 40.70 ▲7.89 |
Add New Post /wp-admin/post-new.php | 1,431 ▼83 | 22.27 ▲4.70 | 559.47 ▼113.72 | 32.98 ▼36.38 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.15 ▼0.07 | 101.08 ▼21.32 | 38.92 ▼9.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant FOLDERS_FOR_MAXGALLERIA_SETTING_GALLERIES_FOLDER - assumed 'FOLDERS_FOR_MAXGALLERIA_SETTING_GALLERIES_FOLDER' (this will throw an Error in a future version of PHP) in wp-content/plugins/folders-for-maxgalleria/admin/settings.php on line 36
- > PHP Notice
Trying to get property 'settings' of non-object in wp-content/plugins/folders-for-maxgalleria/admin/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/folders-for-maxgalleria/admin/settings.php:49
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: maxgalleria, media library plus
folders-for-maxgalleria/folders-for-maxgalleria.php 92% from 13 tests
The main file in "Folders for MaxGalleria" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin799 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 120 | 582 |
PO File | 2 | 50 | 52 | 164 |
JavaScript | 1 | 4 | 5 | 53 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 43.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 56.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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