Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▼5.60ms] Passed 4 tests
A check of server-side resources used by Pythia for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.12 ▼2.72 |
Dashboard /wp-admin | 3.71 ▲0.37 | 47.06 ▼15.02 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 51.54 ▲7.73 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 86.84 ▼9.95 |
Media Library /wp-admin/upload.php | 3.63 ▲0.41 | 38.97 ▲5.30 |
Setup /wp-admin/admin.php?page=wc_pythia_setup | 3.55 | 34.45 |
Login /wp-admin/admin.php?page=wc_pythia_login | 3.54 | 36.07 |
Pythia /wp-admin/admin.php?page=wc_pythia | 3.58 | 32.25 |
Server storage [IO: ▲5.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 114 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
wp_pythia_admin_notice_wc_pythia_setup |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Pythia for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.27 ▼1.09 | 1.71 ▼0.15 | 41.49 ▲2.89 |
Dashboard /wp-admin | 2,239 ▲48 | 5.86 ▲0.96 | 100.06 ▼4.86 | 37.79 ▼5.12 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.14 ▲0.14 | 40.33 ▲6.49 | 34.61 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,564 ▲31 | 18.42 ▼4.70 | 594.57 ▼18.14 | 57.45 ▼12.79 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.26 ▲0.07 | 96.08 ▲1.38 | 42.86 ▼0.19 |
Setup /wp-admin/admin.php?page=wc_pythia_setup | 1,033 | 8.93 | 96.25 | 96.99 |
Login /wp-admin/admin.php?page=wc_pythia_login | 969 | 1.83 | 26.72 | 37.83 |
Pythia /wp-admin/admin.php?page=wc_pythia | 1,079 | 8.54 | 83.80 | 42.23 |
Uninstaller [IO: ▲5.64MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attentionZombie WordPress options detected upon uninstall: 8 options
- The plugin did not uninstall gracefully
- > Error in wp-content/plugins/pythia-for-woocommerce/inc/class-wc-pythia-sync-scheduler.php+59
Uncaught Error: Call to undefined function WC() in wp-content/plugins/pythia-for-woocommerce/inc/class-wc-pythia-sync-scheduler.php:59
Stack trace:
#0 wp-content/plugins/pythia-for-woocommerce/inc/class-wc-pythia.php(154): WC_Pythia_Sync_Scheduler::cancel_schedule()
#1 wp-includes/class-wp-hook.php(310): WC_Pythia::on_deactivate()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(816): do_action() - The plugin did not uninstall correctly, leaving 114 files (5.64MB) in the plugin directory
- (new file) admin/assets/css/fontawesome.css.map
- (new file) admin/assets/css/bootstrap-grid.min.css
- (new file) admin/assets/css/fontawesome.css
- (new file) admin/assets/css/bootstrap-reboot.min.css
- (new file) .svnignore
- (new file) admin/assets/css/font-awesome.css
- (new file) admin/assets/css/font-awesome.css.map
- (new file) admin/assets/css/main.css
- (new file) admin/assets/css/bootstrap.min.css
- (new file) README.md
- ...
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- wp_pythia_admin_notice_wc_pythia_setup
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Pythia_Admin' not found in wp-content/plugins/pythia-for-woocommerce/admin/class-wc-pythia-admin-google-auth.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pythia-for-woocommerce/admin/class-wc-pythia-admin-notices.php:281
- > PHP Fatal error
Uncaught Error: Class 'WC_Pythia_Admin' not found in wp-content/plugins/pythia-for-woocommerce/admin/class-wc-pythia-admin-settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Pythia_Admin' not found in wp-content/plugins/pythia-for-woocommerce/admin/class-wc-pythia-admin-setup.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Pythia_Admin' not found in wp-content/plugins/pythia-for-woocommerce/admin/class-wc-pythia-admin-sync.php:5
- > 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 on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #10, #6, #7, #8, #9 in pythia-for-woocommerce/assets to your readme.txt
pythia-for-woocommerce/pythia-for-woocommerce.php 69% from 13 tests
The entry point to "Pythia for Woocommerce" version 1.1.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 170 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "5.4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected30,785 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 0 | 12 | 11,590 |
Sass | 15 | 2,746 | 45 | 10,696 |
CSS | 8 | 2,186 | 52 | 5,378 |
PHP | 38 | 542 | 1,397 | 2,530 |
JavaScript | 12 | 58 | 55 | 525 |
Markdown | 1 | 22 | 0 | 66 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 19.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 194 | |
▷ Static methods | 44 | 22.68% |
▷ Public methods | 189 | 97.42% |
▷ Protected methods | 4 | 2.06% |
▷ Private methods | 1 | 0.52% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 7 | 36.84% |
▷ Class constants | 12 | 63.16% |
▷ Public constants | 12 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.95MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/full-logo-color.png | 4.12KB | 2.87KB | ▼ 30.51% |
admin/assets/img/google.png | 31.93KB | 6.37KB | ▼ 80.04% |
admin/assets/img/androide2.png | 577.59KB | 590.58KB | 0.00% |
admin/assets/img/androide.png | 323.38KB | 329.87KB | 0.00% |
admin/assets/img/arrow-right.png | 0.19KB | 0.20KB | 0.00% |