Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/neptix/neptix_widget.php+222
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼53.77ms] Passed 4 tests
This is a short check of server-side resources used by Neptix
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.28 ▼36.08 |
Dashboard /wp-admin | 2.06 ▼1.24 | 5.48 ▼47.04 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 5.05 ▼47.20 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.52 ▼84.77 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.13 ▼27.45 |
Neptix /wp-admin/admin.php?page=neptix | 2.07 | 5.35 |
Shortcodes /wp-admin/admin.php?page=neptix_shortcodes | 2.07 | 5.92 |
Server storage [IO: ▲0.81MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 21 new options
New WordPress options |
---|
event_display_view |
events_display_columns |
widget_neptixwidget |
can_compress_scripts |
events_total |
neptix_version |
event_date_color |
event_title_color |
widget_recent-posts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Neptix
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,055 ▲294 | 14.09 ▼0.31 | 11.78 ▲10.07 | 47.26 ▲4.42 |
Dashboard /wp-admin | 2,343 ▲163 | 5.18 ▼0.44 | 84.94 ▲1.10 | 83.04 ▲41.63 |
Posts /wp-admin/edit.php | 2,268 ▲168 | 2.35 ▲0.39 | 34.24 ▼0.24 | 34.89 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,839 ▲313 | 22.69 ▼1.04 | 692.95 ▲63.46 | 33.38 ▼17.34 |
Media Library /wp-admin/upload.php | 1,566 ▲163 | 4.60 ▲0.37 | 98.86 ▲3.37 | 83.32 ▲41.13 |
Neptix /wp-admin/admin.php?page=neptix | 2,186 | 2.55 | 45.99 | 33.46 |
Shortcodes /wp-admin/admin.php?page=neptix_shortcodes | 1,008 | 2.02 | 29.23 | 38.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/neptix/neptix_widget.php+222
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 21 options in the database
- event_font_color
- widget_theysaidso_widget
- event_countdown_color
- event_display_view
- neptix_version
- widget_neptixcountdownwidget
- widget_recent-comments
- event_date_color
- widget_neptixcalendarwidget
- event_title_color
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=neptix_shortcodes
- > Deprecated in wp-content/plugins/neptix/neptix_widget_countdown.php+234
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=neptix_shortcodes
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in NeptixWidget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=neptix_shortcodes
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in NeptixCalendarWidget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=neptix_shortcodes
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in NeptixCountdownWidget is deprecated since version 4.3.0! Use __construct() instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/neptix/neptix.php
- > /wp-content/plugins/neptix/neptix_shortcodes.php
- > /wp-content/plugins/neptix/neptix_settings.php
- > /wp-content/plugins/neptix/neptix_get_events.php
- > /wp-content/plugins/neptix/neptix_json.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant neptix_plugin_url - assumed 'neptix_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/neptix/neptix_shortcodes.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/neptix/neptix_widget_countdown.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/neptix/neptix_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/neptix/style.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/neptix/neptix_widget_calendar.php:3
- > PHP Warning
Use of undefined constant neptix_plugin_url - assumed 'neptix_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/neptix/neptix_shortcodes.php on line 8
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Neptix settings.), #2 (Neptix shortcode.), #3 (Neptix embed in a post or page.), #4 (Neptix calendar widget.), #5 (Neptix countdown widget.), #6 (Neptix events widget.)
neptix/neptix.php Passed 13 tests
The main PHP script in "Neptix" version 1.0 is automatically included on every request by WordPress
23 characters long description:
Neptix Wordpress Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin4,598 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 105 | 35 | 1,894 |
JavaScript | 5 | 114 | 226 | 1,437 |
CSS | 6 | 143 | 49 | 1,267 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 7.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.54MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 1.05KB | 0.18KB | ▼ 82.76% |
css/ui/images/ui-icons_ffd27a_256x240.png | 4.54KB | 4.23KB | ▼ 6.94% |
screenshot-1.png | 48.88KB | 21.95KB | ▼ 55.10% |
css/ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.27KB | 0.11KB | ▼ 58.21% |
images/color-picker.png | 2.90KB | 0.32KB | ▼ 89.09% |