Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼144.10ms] Passed 4 tests
This is a short check of server-side resources used by SortMeThis
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 33.80 ▼1.59 |
Dashboard /wp-admin | 3.11 ▲0.05 | 47.94 ▼6.24 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 45.43 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 96.67 ▼564.04 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 29.61 ▼3.52 |
Media /wp-admin/admin.php?page=sort-me-this | 3.09 | 29.64 |
Media Categories /wp-admin/admin.php?page=sort-me-this-media-categories | 3.09 | 28.72 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 2 new options
New WordPress options |
---|
cmc-fv |
smt-media-categories |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SortMeThis
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,845 ▲250 | 16.93 ▲1.25 | 16.27 ▲6.97 | 46.52 ▼4.21 |
Dashboard /wp-admin | 3,018 ▲87 | 6.75 ▲0.77 | 151.62 ▼5.77 | 130.29 ▲24.08 |
Posts /wp-admin/edit.php | 2,795 ▲56 | 2.75 ▼0.09 | 72.64 ▲0.66 | 87.98 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,727 ▲44 | 18.83 ▲0.12 | 397.68 ▼17.09 | 139.03 ▲30.93 |
Media Library /wp-admin/upload.php | 1,803 ▼4 | 5.38 ▲0.34 | 155.04 ▼6.22 | 133.80 ▲16.98 |
Media /wp-admin/admin.php?page=sort-me-this | 1,729 | 4.54 | 97.68 | 140.08 |
Media Categories /wp-admin/admin.php?page=sort-me-this-media-categories | 1,345 | 2.58 | 57.24 | 112.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=sort-me-this
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/sort-me-this/admin/class-sort-me-this-admin.php+258
Undefined variable: pag_container
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sort-me-this/public/partials/sort-me-this-public-display.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sort-me-this/admin/partials/sort-me-this-admin-display-categories.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sort-me-this/admin/partials/sort-me-this-admin-display-media.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
9 plugin tags: picture sorter, media organizer, organize media, documents sorter, sort media...
sort-me-this/sort-me-this.php Passed 13 tests
The entry point to "SortMeThis" version 1.0.1 is a PHP file that has certain tags in its header comment area
83 characters long description:
This plugin allows you to fully manage, filter and organize your media in easy way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin10,219 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 959 | 1,710 | 5,028 |
CSS | 8 | 114 | 144 | 3,635 |
PHP | 13 | 210 | 594 | 816 |
LESS | 9 | 68 | 61 | 740 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 8.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
9 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
admin/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
admin/css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
admin/css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |