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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.04ms] Passed 4 tests
This is a short check of server-side resources used by iCafe Library
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▼0.38 | 23.87 ▼16.57 |
Dashboard /wp-admin | 3.59 ▲0.28 | 54.23 ▲0.10 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 57.29 ▲8.61 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 90.33 ▼6.27 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.02 ▼1.41 |
iCafe Library /wp-admin/admin.php?page=iCafe-Library-admin | 3.48 | 38.30 |
Appearance /wp-admin/admin.php?page=iCafe-Library-Appearance | 3.49 | 52.37 |
Custom Bookshelves /wp-admin/admin.php?page=iCafe-Library-Custom-Bookshelves | 3.48 | 39.88 |
Manage Books /wp-admin/admin.php?page=iCafe-Library-Sections | 3.45 | 36.68 |
Manage Resources /wp-admin/admin.php?page=iCafe-Library-Resources | 3.45 | 35.74 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: 3 new tables, 23 new options
New tables |
---|
wp_gw_tiles |
wp_gw_lookup |
wp_gw_sections |
New WordPress options |
---|
active_chapter_text |
active_section_color |
default_chapter_icon |
active_chapter_icon |
db_upgraded |
resource_list_text |
active_chapter_color |
active_section_icon |
hide_circle |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for iCafe Library
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,081 ▲335 | 15.42 ▲1.01 | 10.79 ▲8.89 | 45.05 ▲2.51 |
Dashboard /wp-admin | 2,387 ▲196 | 6.59 ▲0.71 | 138.14 ▲31.88 | 42.19 ▼0.32 |
Posts /wp-admin/edit.php | 2,290 ▲198 | 3.46 ▲1.40 | 46.88 ▲4.94 | 30.09 ▼6.89 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 23.27 ▼0.04 | 642.26 ▼1.46 | 37.66 ▼14.21 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.23 ▲0.00 | 98.38 ▼16.41 | 55.12 ▲4.14 |
iCafe Library /wp-admin/admin.php?page=iCafe-Library-admin | 3,363 | 31.86 | 975.44 | 61.38 |
Appearance /wp-admin/admin.php?page=iCafe-Library-Appearance | 1,579 | 3.21 | 47.27 | 59.04 |
Custom Bookshelves /wp-admin/admin.php?page=iCafe-Library-Custom-Bookshelves | 1,003 | 3.13 | 43.18 | 29.05 |
Manage Books /wp-admin/admin.php?page=iCafe-Library-Sections | 1,246 | 3.38 | 44.17 | 29.56 |
Manage Resources /wp-admin/admin.php?page=iCafe-Library-Resources | 1,200 | 3.13 | 41.53 | 38.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 22 options
- active_section_text
- resource_list_border
- can_compress_scripts
- active_section_color
- default_chapter_text
- hide_circle
- default_chapter_color
- default_section_text
- widget_theysaidso_widget
- default_section_icon
- ...
Smoke tests 50% 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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=iCafe-Library-Sections
- > Notice in wp-content/plugins/icafe-library/icafe-library.php+1748
Undefined index: state
- > GET request to /wp-admin/admin.php?page=iCafe-Library-Resources
- > Notice in wp-content/plugins/icafe-library/icafe-library.php+2902
Undefined index: tid
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/icafe-library/icafe-library.php:17
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: ground work, groundwork, icafe, library, staff development...
icafe-library/icafe-library.php Passed 13 tests
This is the main PHP file of "iCafe Library" version 1.8.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
92 characters long description:
Wordpress plugin to organize and deploy large scale staff/professional development materials
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,644 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 2,501 | 125 | 1,772 |
CSS | 4 | 405 | 215 | 1,135 |
JavaScript | 6 | 424 | 318 | 708 |
XML | 3 | 0 | 0 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_d4d4d4_0.png | 9.28KB | 4.76KB | ▼ 48.74% |
css/images/ui-icons_3399ff_0.png | 9.28KB | 4.76KB | ▼ 48.72% |
css/images/ui-icons_333333_0.png | 9.28KB | 4.76KB | ▼ 48.69% |
css/images/ui-icons_0E6D38_0.png | 9.28KB | 4.76KB | ▼ 48.71% |
css/images/ui-icons_ffffff_0.png | 9.31KB | 4.76KB | ▼ 48.86% |