Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.49MB] [CPU: ▲18.01ms] 75% from 4 tests
A check of server-side resources used by Nexter Extension
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 749.08ms on /wp-admin/themes.php?page=nexter_settings_welcome)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.49 ▲2.02 | 53.13 ▲14.29 |
Dashboard /wp-admin | 5.99 ▲2.65 | 70.62 ▲13.20 |
Posts /wp-admin/edit.php | 6.01 ▲2.66 | 77.87 ▲35.27 |
Add New Post /wp-admin/post-new.php | 8.55 ▲2.66 | 107.45 ▲16.06 |
Media Library /wp-admin/upload.php | 5.87 ▲2.64 | 59.26 ▲28.50 |
Nexter Settings /wp-admin/themes.php?page=nexter_settings_welcome | 6.82 | 749.08 |
Server storage [IO: ▲8.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 580 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nexter Extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲253 | 14.87 ▲0.16 | 2.04 ▲0.23 | 38.69 ▼4.95 |
Dashboard /wp-admin | 2,398 ▲220 | 6.71 ▲0.99 | 129.52 ▲15.86 | 44.77 ▲0.82 |
Posts /wp-admin/edit.php | 2,332 ▲232 | 4.06 ▲2.06 | 61.05 ▲26.29 | 37.04 ▲6.59 |
Add New Post /wp-admin/post-new.php | 1,594 ▲68 | 23.33 ▼0.42 | 581.20 ▼70.75 | 32.76 ▼25.51 |
Media Library /wp-admin/upload.php | 1,458 ▲64 | 4.77 ▲0.50 | 89.34 ▼10.78 | 43.24 ▼0.11 |
Nexter Settings /wp-admin/themes.php?page=nexter_settings_welcome | 1,757 | 3.67 | 53.56 | 61.51 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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)
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=nexter_settings_welcome
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 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
Please fix the following
- 65× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nexter-extension/include/nexter-template/nexter-post-type-compatibility.php:33
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/nexter-extension/include/custom-options/metabox/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/nexter-extension/include/custom-options/metabox/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/nexter-extension/include/custom-options/metabox/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/nexter-extension/include/custom-options/metabox/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nexter-extension/include/custom-options/module/nexter-display-conditional-rules.php:97
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/nexter-extension/include/custom-options/metabox/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nexter-extension/include/panel-settings/extensions/nexter-ext-post-duplicator.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/nexter-extension/include/custom-options/metabox/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nexter-extension/include/custom-options/nexter-sections-settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
No plugin tags provided
nexter-extension/nexter-extension.php 92% from 13 tests
The primary PHP file in "Nexter Extension" version 3.1.0 is used by WordPress to initiate all plugin functionality
It is important 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
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
No dangerous file extensions were detected97,296 lines of code in 414 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
JavaScript | 56 | 5,239 | 15,692 | 26,570 |
PHP | 105 | 4,477 | 8,143 | 19,291 |
CSS | 28 | 388 | 1,303 | 10,295 |
XML | 4 | 264 | 561 | 6,776 |
Sass | 17 | 306 | 29 | 1,411 |
SVG | 84 | 0 | 0 | 630 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 122)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 32.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 122.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 119 | |
▷ Abstract classes | 9 | 7.56% |
▷ Concrete classes | 110 | 92.44% |
▷ Final classes | 0 | 0.00% |
Methods | 989 | |
▷ Static methods | 213 | 21.54% |
▷ Public methods | 875 | 88.47% |
▷ Protected methods | 91 | 9.20% |
▷ Private methods | 23 | 2.33% |
Functions | 137 | |
▷ Named functions | 95 | 69.34% |
▷ Anonymous functions | 42 | 30.66% |
Constants | 26 | |
▷ Global constants | 13 | 50.00% |
▷ Class constants | 13 | 50.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/activate.png | 127.01KB | 62.91KB | ▼ 50.46% |
include/custom-options/metabox/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
include/custom-options/metabox/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
include/custom-options/metabox/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/images/blockquote.png | 1.50KB | 0.49KB | ▼ 67.16% |