Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.78ms] Passed 4 tests
A check of server-side resources used by BEMO Album
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 35.50 ▼4.33 |
Dashboard /wp-admin | 3.41 ▲0.07 | 45.75 ▼13.89 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.84 ▲2.88 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.53 ▼15.78 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.05 ▲3.76 |
BEMOAlbum /wp-admin/options-general.php?page=bemoalbum_settings | 3.31 | 31.97 |
Albums /wp-admin/edit-tags.php?taxonomy=album&post_type=attachment | 3.36 | 37.17 |
Images To Albums /wp-admin/upload.php?page=images-to-bemoalbums | 3.41 | 31.27 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for BEMO Album
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,060 ▲314 | 13.87 ▼0.49 | 8.63 ▲6.87 | 50.31 ▲6.27 |
Dashboard /wp-admin | 2,331 ▲143 | 5.06 ▼0.84 | 120.83 ▲6.37 | 44.06 ▼1.89 |
Posts /wp-admin/edit.php | 2,216 ▲124 | 2.50 ▲0.50 | 39.02 ▲0.55 | 37.34 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,633 ▲119 | 23.08 ▲5.63 | 665.34 ▼13.49 | 39.44 ▼9.71 |
Media Library /wp-admin/upload.php | 1,510 ▲122 | 4.47 ▲0.29 | 96.65 ▼0.55 | 42.90 ▼1.95 |
BEMOAlbum /wp-admin/options-general.php?page=bemoalbum_settings | 914 | 1.92 | 26.17 | 24.56 |
Albums /wp-admin/edit-tags.php?taxonomy=album&post_type=attachment | 1,635 | 3.38 | 50.14 | 28.81 |
Images To Albums /wp-admin/upload.php?page=images-to-bemoalbums | 1,080 | 2.10 | 27.69 | 25.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bemoalbum/bemoalbum_form.php:22
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bemoalbum/classes/class.Image_To_Album_Table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bemoalbum/classes/class.Image_To_Album_Table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/bemoalbum/categories-images.php:3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bemoalbum/classes/class.Image_To_Album_Table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bemoalbum/image_to_album.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bemoalbum/bemoalbum_form.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/edit-tags.php?taxonomy=album&post_type=attachment
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=album&post_type=attachment:283:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit-tags.php?taxonomy=album&post_type=attachment
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: nested albums, wordpress photo album, photo album, photo catalog, album...
bemoalbum/bemoalbum.php Passed 13 tests
The entry point to "BEMO Album" version 1.0.0 is a PHP file that has certain tags in its header comment area
74 characters long description:
Shows a collection of albums that you can click into to reveal the images.
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 detected2,720 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 43 | 225 | 296 | 1,332 |
PHP | 7 | 254 | 390 | 842 |
Markdown | 1 | 210 | 0 | 406 |
CSS | 5 | 9 | 43 | 71 |
JSON | 2 | 0 | 0 | 69 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 1 | 4.76% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
7 PNG files occupy 0.35MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/icon.png | 0.36KB | 0.18KB | ▼ 50.27% |
colorbox/images/controls.png | 1.23KB | 1.28KB | 0.00% |
images/icon.png | 0.36KB | 0.18KB | ▼ 50.27% |
colorbox/images/border.png | 0.07KB | 0.10KB | 0.00% |
colorbox/images/overlay.png | 0.11KB | 0.15KB | 0.00% |