10% neptix

Code Review | Neptix

WordPress plugin Neptix scored10%from 54 tests.

About plugin

  • Plugin page: neptix
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.7
  • WordPress version: 6.3.1
  • First release: Jun 16, 2014
  • Latest release: Jun 17, 2014
  • Number of updates: 10
  • Update frequency: every 1.3 days
  • Top authors: bmgmediaco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /783 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.28 ▼36.08
Dashboard /wp-admin2.06 ▼1.245.48 ▼47.04
Posts /wp-admin/edit.php2.07 ▼1.295.05 ▼47.20
Add New Post /wp-admin/post-new.php2.07 ▼3.826.52 ▼84.77
Media Library /wp-admin/upload.php2.07 ▼1.166.13 ▼27.45
Neptix /wp-admin/admin.php?page=neptix2.075.35
Shortcodes /wp-admin/admin.php?page=neptix_shortcodes2.075.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,055 ▲29414.09 ▼0.3111.78 ▲10.0747.26 ▲4.42
Dashboard /wp-admin2,343 ▲1635.18 ▼0.4484.94 ▲1.1083.04 ▲41.63
Posts /wp-admin/edit.php2,268 ▲1682.35 ▲0.3934.24 ▼0.2434.89 ▼3.75
Add New Post /wp-admin/post-new.php1,839 ▲31322.69 ▼1.04692.95 ▲63.4633.38 ▼17.34
Media Library /wp-admin/upload.php1,566 ▲1634.60 ▲0.3798.86 ▲3.3783.32 ▲41.13
Neptix /wp-admin/admin.php?page=neptix2,1862.5545.9933.46
Shortcodes /wp-admin/admin.php?page=neptix_shortcodes1,0082.0229.2338.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

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.)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP10105351,894
JavaScript51142261,437
CSS6143491,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 code0.28
Average class complexity28.00
▷ Minimum class complexity19.00
▷ Maximum class complexity33.00
Average method complexity7.75
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/close.png1.05KB0.18KB▼ 82.76%
css/ui/images/ui-icons_ffd27a_256x240.png4.54KB4.23KB▼ 6.94%
screenshot-1.png48.88KB21.95KB▼ 55.10%
css/ui/images/ui-bg_glass_65_ffffff_1x400.png0.27KB0.11KB▼ 58.21%
images/color-picker.png2.90KB0.32KB▼ 89.09%