Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▲3.06ms] Passed 4 tests
This is a short check of server-side resources used by Active Catalog
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 53.25 ▲11.98 |
Dashboard /wp-admin | 3.80 ▲0.45 | 58.33 ▼2.29 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 69.52 ▲26.86 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 94.41 ▼10.75 |
Media Library /wp-admin/upload.php | 3.62 ▲0.38 | 48.10 ▲13.28 |
Categories /wp-admin/edit-tags.php?taxonomy=ac_product_cat&post_type=ac_product | 3.65 | 52.67 |
Settings /wp-admin/edit.php?post_type=ac_product&page=catalog-settings | 3.61 | 42.62 |
Add new /wp-admin/post-new.php?post_type=ac_product | 6.43 | 94.62 |
Products /wp-admin/edit.php?post_type=ac_product | 3.69 | 54.17 |
Search results /wp-admin/options.php?page=ac-search | 3.63 | 46.05 |
Tags /wp-admin/edit-tags.php?taxonomy=ac_product_tag&post_type=ac_product | 3.65 | 46.83 |
Delete & transfer /wp-admin/admin.php?page=delete_transfer | 3.62 | 46.52 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Active Catalog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,031 ▲285 | 16.80 ▲2.42 | 2.16 ▲0.30 | 42.33 ▼0.83 |
Dashboard /wp-admin | 2,435 ▲244 | 7.96 ▲2.06 | 147.09 ▲32.45 | 48.26 ▲4.46 |
Posts /wp-admin/edit.php | 2,310 ▲218 | 5.09 ▲3.07 | 71.00 ▲27.66 | 33.74 ▼3.50 |
Add New Post /wp-admin/post-new.php | 1,729 ▲187 | 25.55 ▲7.46 | 696.48 ▲45.77 | 37.26 ▼21.97 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 5.16 ▲0.99 | 101.89 ▲2.35 | 45.10 ▲3.08 |
Categories /wp-admin/edit-tags.php?taxonomy=ac_product_cat&post_type=ac_product | 1,497 | 5.09 | 54.68 | 31.52 |
Settings /wp-admin/edit.php?post_type=ac_product&page=catalog-settings | 1,043 | 4.70 | 49.98 | 24.54 |
Add new /wp-admin/post-new.php?post_type=ac_product | 6,381 | 20.94 | 847.25 | 46.33 |
Products /wp-admin/edit.php?post_type=ac_product | 1,448 | 5.07 | 57.39 | 28.20 |
Search results /wp-admin/options.php?page=ac-search | 1,018 | 4.76 | 49.70 | 25.22 |
Tags /wp-admin/edit-tags.php?taxonomy=ac_product_tag&post_type=ac_product | 1,461 | 4.87 | 51.89 | 32.92 |
Delete & transfer /wp-admin/admin.php?page=delete_transfer | 975 | 4.77 | 50.79 | 24.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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)
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=ac_product&page=catalog-settings
- > Notice in wp-content/plugins/active-catalog/includes/pages/options-page/tabs.php+13
Undefined variable: tab
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
5 plugin tags: product catalog, industrial catalog, catalog, catalogue, industrial products
active-catalog/active-catalog.php Passed 13 tests
Analyzing the main PHP file in "Active Catalog" version 1.0
32 characters long description:
AC Product Catalog for WordPress
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 detected5,119 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 368 | 339 | 2,599 |
JavaScript | 4 | 222 | 82 | 1,305 |
CSS | 5 | 223 | 29 | 1,175 |
Markdown | 1 | 16 | 0 | 40 |
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.41 |
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 | 70 | |
▷ Named functions | 68 | 97.14% |
▷ Anonymous functions | 2 | 2.86% |
Constants | 5 | |
▷ Global constants | 5 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sku-icon.png | 1.31KB | 0.50KB | ▼ 62.18% |
assets/images/placeholder-image.png | 2.29KB | 2.20KB | ▼ 3.76% |
assets/images/favicon.png | 2.93KB | 0.23KB | ▼ 92.08% |