Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.67MB] [CPU: ▼38.52ms] Passed 4 tests
A check of server-side resources used by CataBlog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.77 | 30.71 ▼8.88 |
Dashboard /wp-admin | 3.28 ▼0.03 | 18.00 ▼30.36 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 17.06 ▼27.84 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.61 | 17.69 ▼79.60 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 17.64 ▼16.28 |
Delete Gallery /wp-admin/admin.php?page=catablog-gallery-delete | 3.29 | 21.67 |
Unlock Folders /wp-admin/admin.php?page=catablog-unlock-folders | 4.05 | 35.72 |
Remove /wp-admin/admin.php?page=catablog-remove | 4.04 | 31.64 |
Add New /wp-admin/admin.php?page=catablog-upload | 4.05 | 34.94 |
Create /wp-admin/admin.php?page=catablog-create | 3.97 | 30.50 |
Templates /wp-admin/admin.php?page=catablog-templates | 4.05 | 35.61 |
Delete Template /wp-admin/admin.php?page=catablog-templates-delete | 4.05 | 33.19 |
Lock Folders /wp-admin/admin.php?page=catablog-lock-folders | 4.05 | 35.63 |
Delete /wp-admin/admin.php?page=catablog-delete | 4.05 | 33.14 |
Append To Gallery /wp-admin/admin.php?page=catablog-gallery-append | 3.97 | 30.44 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
catablog-options |
widget_catablogcategorywidget |
widget_recent-posts |
widget_catablogwidget |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CataBlog
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 14.35 ▲0.05 | 2.09 ▲0.48 | 43.98 ▲3.37 |
Dashboard /wp-admin | 2,269 ▲98 | 5.57 ▼0.09 | 89.31 ▲3.45 | 76.81 ▲32.20 |
Posts /wp-admin/edit.php | 2,174 ▲74 | 2.02 ▲0.02 | 35.69 ▼3.45 | 37.74 ▲4.41 |
Add New Post /wp-admin/post-new.php | 1,607 ▲81 | 23.20 ▲0.20 | 763.08 ▲99.58 | 55.86 ▲0.59 |
Media Library /wp-admin/upload.php | 1,471 ▲74 | 4.19 ▼0.08 | 106.76 ▲8.65 | 78.66 ▲34.42 |
Delete Gallery /wp-admin/admin.php?page=catablog-gallery-delete | 861 | 1.90 | 36.91 | 26.17 |
Unlock Folders /wp-admin/admin.php?page=catablog-unlock-folders | 740 | 1.36 | 14.74 | 18.48 |
Remove /wp-admin/admin.php?page=catablog-remove | 762 | 1.51 | 6.66 | 16.53 |
Add New /wp-admin/admin.php?page=catablog-upload | 1,031 | 1.90 | 29.43 | 36.53 |
Create /wp-admin/admin.php?page=catablog-create | 969 | 1.85 | 27.62 | 33.98 |
Templates /wp-admin/admin.php?page=catablog-templates | 1,133 | 1.96 | 29.16 | 35.73 |
Delete Template /wp-admin/admin.php?page=catablog-templates-delete | 861 | 1.84 | 26.43 | 23.42 |
Lock Folders /wp-admin/admin.php?page=catablog-lock-folders | 740 | 1.51 | 6.59 | 14.10 |
Delete /wp-admin/admin.php?page=catablog-delete | 858 | 1.92 | 24.61 | 22.74 |
Append To Gallery /wp-admin/admin.php?page=catablog-gallery-append | 1,384 | 1.85 | 28.62 | 30.08 |
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: 9 options
- can_compress_scripts
- widget_catablogwidget
- theysaidso_admin_options
- catablog-options
- widget_catablogcategorywidget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=catablog-gallery-delete
- > Notice in wp-includes/taxonomy.php+3039
Undefined property: WP_Taxonomy::$taxonomy
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=catablog-gallery-append
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=catablog-create
- > Notice in wp-content/plugins/catablog/lib/CataBlog.class.php+1314
Undefined index: _catablog_create_nonce
- > GET request to /wp-admin/admin.php?page=catablog-gallery-append
- > Notice in wp-content/plugins/catablog/lib/CataBlog.class.php+1252
Undefined index: _catablog_append_gallery_nonce
- > GET request to /wp-admin/admin.php?page=catablog-gallery-append
- > Notice in wp-content/plugins/catablog/templates/admin-library.php+51
Trying to get property 'term_id' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/catablog/lib/catablog.upload.php
- > /wp-content/plugins/catablog/templates/widget-javascript.php
- > /wp-content/plugins/catablog/templates/admin-export.php
- > /wp-content/plugins/catablog/catablog.php
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/catablog/lib/CataBlogWidget.class.php:11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/catablog/templates/admin-export.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/catablog/templates/admin-rescan.php:3
- > PHP Notice
Undefined variable: screen in wp-content/plugins/catablog/templates/admin-contextual-help.php on line 102
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/catablog/templates/admin-import.php:3
- > PHP Notice
Undefined variable: screen in wp-content/plugins/catablog/templates/admin-contextual-help.php on line 94
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/catablog/templates/admin-options.php:3
- > PHP Notice
Undefined variable: screen in wp-content/plugins/catablog/templates/admin-contextual-help.php on line 86
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/catablog/templates/admin-library.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/catablog/templates/admin-screen-options-add-new.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Use the list view for a bird's eye of the entire catalog.), #2 (Use the grid view for bigger thumbnails and easier sorting.), #3 (Easy and familiar forms for making and editing catalog items.), #4 (Turn your catalog into a photo gallery using custom templates.), #5 (Display your catalog photos in high resolution with the LightBox.), #6 (CataBlog is now localized for Español.)
- Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
catablog/catablog.php 92% from 13 tests
This is the main PHP file of "CataBlog" version 1.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin15,722 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 3,095 | 3,975 | 7,285 |
PHP | 29 | 2,093 | 772 | 6,577 |
CSS | 2 | 236 | 35 | 1,164 |
JavaScript | 2 | 218 | 28 | 647 |
HTML | 5 | 5 | 0 | 49 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 108.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 478.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 8 | 3.98% |
▷ Public methods | 161 | 80.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 40 | 19.90% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
10 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sortable_handle.png | 1.22KB | 0.34KB | ▼ 71.99% |
images/upload.png | 1.93KB | 1.10KB | ▼ 43.17% |
images/catablog-icon-16.png | 1.12KB | 1.08KB | ▼ 3.48% |
images/catablog-icon-32.png | 2.05KB | 1.74KB | ▼ 15.03% |
images/catablog-admin-select-image.png | 2.01KB | 1.11KB | ▼ 44.73% |