Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲2.31MB] [CPU: ▼278.60ms] Passed 4 tests
Analyzing server-side resources used by NEXUS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.77 ▲2.65 | 68.22 ▲32.24 |
Dashboard /wp-admin | 5.71 ▲2.31 | 49.57 ▲15.46 |
Posts /wp-admin/edit.php | 6.00 ▲2.36 | 56.81 ▲18.84 |
Add New Post /wp-admin/post-new.php | 9.22 ▲2.25 | 122.84 ▼1,153.42 |
Media Library /wp-admin/upload.php | 5.63 ▲2.33 | 40.47 ▲4.74 |
Rejected /wp-admin/edit.php?post_type=nexus_rejected | 5.71 | 41.96 |
Complete /wp-admin/edit.php?post_type=nexus_complete | 5.71 | 46.11 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 5.71 | 37.80 |
Server storage [IO: ▲4.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 293 new files
Database: no new tables, 12 new options
New WordPress options |
---|
nexus_request_settings |
nexus_mode_settings |
nexus_time_tracker_settings |
nexus_plugin_url |
nexus_main_settings |
fs_accounts |
fs_api_cache |
nexus_plugin_dir |
nexus_theme_settings |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
A check of browser resources used by NEXUS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,080 ▲338 | 17.49 ▲1.71 | 6.03 ▼0.84 | 2.28 ▲0.08 |
Dashboard /wp-admin | 3,197 ▲336 | 8.36 ▲2.19 | 145.75 ▲3.18 | 263.31 ▲96.65 |
Posts /wp-admin/edit.php | 3,030 ▲336 | 5.33 ▲2.09 | 80.09 ▲13.78 | 195.50 ▲45.49 |
Add New Post /wp-admin/post-new.php | 1,742 ▼18 | 20.37 ▼2.31 | 398.29 ▼19.73 | 177.25 ▼31.79 |
Media Library /wp-admin/upload.php | 1,808 ▲113 | 5.90 ▲0.42 | 113.25 ▼38.43 | 280.87 ▲38.51 |
Rejected /wp-admin/edit.php?post_type=nexus_rejected | 1,683 | 5.45 | 91.82 | 160.81 |
Complete /wp-admin/edit.php?post_type=nexus_complete | 1,703 | 5.33 | 82.33 | 207.38 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 1,700 | 4.83 | 78.75 | 162.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/nexus/nexus_pre_functions.php+905
Invalid argument supplied for foreach()
- Zombie WordPress options were found after uninstall: 12 options
- nexus_mode_list
- nexus_theme_settings
- nexus_plugin_url
- nexus_time_tracker_settings
- fs_accounts
- fs_active_plugins
- fs_api_cache
- nexus_main_settings
- nexus_mode_settings
- nexus_request_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 34× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/nexus/inc/nexus_classes/emails/client/remind_signoff.php
- > /wp-content/plugins/nexus/inc/nexus_classes/emails/design/completed.php
- > /wp-content/plugins/nexus/inc/nexus_classes/emails/client/begun.php
- > /wp-content/plugins/nexus/css/nexus-variable-css.php
- > /wp-content/plugins/nexus/inc/nexus_classes/emails/design/begun.php
- > /wp-content/plugins/nexus/inc/nexus_classes/emails/design/newrequest.php
- > /wp-content/plugins/nexus/inc/nexus_classes/emails/client/reject.php
- > /wp-content/plugins/nexus/inc/nexus_api/panels/filter.php
- > /wp-content/plugins/nexus/inc/nexus_api/scripts/datepicker.php
- > /wp-content/plugins/nexus/inc/nexus_classes/emails/header.php
- 258× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: cfname in wp-content/plugins/nexus/inc/nexus_classes/emails/design/feedbackfromclient.php on line 1
- > PHP Notice
Undefined variable: website_title in wp-content/plugins/nexus/inc/nexus_classes/emails/client/mockup.php on line 16
- > PHP Notice
Undefined variable: projectID in wp-content/plugins/nexus/inc/nexus_classes/emails/design/updated.php on line 1
- > PHP Notice
Undefined variable: designer in wp-content/plugins/nexus/inc/nexus_classes/emails/design/feedbackfromclient.php on line 3
- > PHP Notice
Undefined variable: website_url in wp-content/plugins/nexus/inc/nexus_classes/emails/header.php on line 40
- > PHP Notice
Undefined variable: website_title in wp-content/plugins/nexus/inc/nexus_classes/emails/client/feedbacktoclient.php on line 16
- > PHP Notice
Undefined variable: oldID in wp-content/plugins/nexus/inc/nexus_classes/emails/client/reject.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function nexus_plugin_inc() in wp-content/plugins/nexus/inc/nexus_api/forms/login_form.php:2
- > PHP Notice
Undefined variable: cfname in wp-content/plugins/nexus/inc/nexus_classes/emails/design/mockup.php on line 3
- > PHP Notice
Undefined variable: designer in wp-content/plugins/nexus/inc/nexus_classes/emails/design/mockup.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
nexus/nexus.php 92% from 13 tests
"NEXUS" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin66,591 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 172 | 5,568 | 11,536 | 27,066 |
CSS | 26 | 3,239 | 588 | 16,973 |
SVG | 8 | 1 | 0 | 11,685 |
JavaScript | 18 | 1,128 | 738 | 5,316 |
PO File | 4 | 1,422 | 1,439 | 3,651 |
Sass | 15 | 267 | 82 | 1,636 |
Markdown | 1 | 61 | 0 | 192 |
Ruby | 1 | 1 | 0 | 40 |
JSON | 1 | 0 | 0 | 32 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,019)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 49.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,019.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 855 | |
▷ Static methods | 107 | 12.51% |
▷ Public methods | 646 | 75.56% |
▷ Protected methods | 47 | 5.50% |
▷ Private methods | 162 | 18.95% |
Functions | 166 | |
▷ Named functions | 165 | 99.40% |
▷ Anonymous functions | 1 | 0.60% |
Constants | 118 | |
▷ Global constants | 76 | 64.41% |
▷ Class constants | 42 | 35.59% |
▷ Public constants | 42 | 100.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
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-sidebar.png | 4.72KB | 2.88KB | ▼ 38.96% |
images/arrowDown.png | 0.44KB | 0.39KB | ▼ 12.17% |
js/images/whitefade.png | 5.35KB | 8.97KB | 0.00% |
images/logo-small.png | 1.64KB | 1.62KB | ▼ 1.31% |
images/beer.png | 18.83KB | 10.93KB | ▼ 41.95% |