Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.53ms] Passed 4 tests
Analyzing server-side resources used by The Novel Design Store Directory
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 34.59 ▼6.94 |
Dashboard /wp-admin | 3.40 ▲0.05 | 51.20 ▼10.44 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 53.50 ▲7.92 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.11 ▼15.92 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.94 ▲3.19 |
Add New /wp-admin/post-new.php?post_type=wp_shops | 3.43 | 45.86 |
Settings /wp-admin/edit.php?post_type=wp_shops&page=licence | 3.39 | 37.66 |
All Shops /wp-admin/edit.php?post_type=wp_shops | 3.37 | 34.28 |
Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=wp_shops | 3.44 | 40.42 |
Import / Export /wp-admin/edit.php?post_type=wp_shops&page=shop-csv | 3.34 | 34.37 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for The Novel Design Store Directory
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,144 ▲397 | 14.93 ▲0.55 | 5.23 ▲3.61 | 37.06 ▼5.85 |
Dashboard /wp-admin | 2,458 ▲280 | 6.31 ▲0.59 | 115.71 ▲0.81 | 40.36 ▼7.92 |
Posts /wp-admin/edit.php | 2,321 ▲221 | 3.49 ▲1.53 | 55.36 ▲18.06 | 36.59 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,581 ▲47 | 23.18 ▼1.91 | 680.98 ▲23.83 | 37.26 ▼41.67 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 4.44 ▲0.25 | 85.42 ▼12.11 | 42.90 ▲1.32 |
Add New /wp-admin/post-new.php?post_type=wp_shops | 2,746 | 7.96 | 199.04 | 73.85 |
Settings /wp-admin/edit.php?post_type=wp_shops&page=licence | 1,390 | 3.12 | 48.01 | 33.29 |
All Shops /wp-admin/edit.php?post_type=wp_shops | 1,302 | 3.50 | 52.18 | 30.16 |
Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=wp_shops | 1,473 | 3.27 | 48.48 | 30.61 |
Import / Export /wp-admin/edit.php?post_type=wp_shops&page=shop-csv | 1,068 | 3.17 | 37.45 | 25.44 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/noveldesign-store-directory/views/admin-csv.php:81
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/noveldesign-store-directory/views/search-store-template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/noveldesign-store-directory/views/licence.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/noveldesign-store-directory/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/noveldesign-store-directory/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/noveldesign-store-directory/views/single-wp_shops.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/noveldesign-store-directory/views/single-wp_shop.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/noveldesign-store-directory/views/list-store-template.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #3 in noveldesign-store-directory/assets to your readme.txt
noveldesign-store-directory/noveldesign-store-directory.php Passed 13 tests
"The Novel Design Store Directory" version 3.9.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
63 characters long description:
A store directory plugin to manage shopping centre’s tenants.
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
Success! There were no dangerous files found in this plugin8,192 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 815 | 1,182 | 4,829 |
PHP | 8 | 54 | 126 | 1,718 |
CSS | 6 | 331 | 100 | 1,612 |
SVG | 2 | 0 | 1 | 33 |
PHP code Passed 2 tests
This is a short overview 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.30 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_777620_256x240.png | 4.52KB | 4.18KB | ▼ 7.58% |
css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
images/time.png | 15.21KB | 10.07KB | ▼ 33.81% |
css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |