Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.60ms] Passed 4 tests
This is a short check of server-side resources used by Neptune Business
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.18 ▲2.87 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.84 ▲0.28 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.90 ▲0.57 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 82.85 ▼9.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.20 ▲2.16 |
Google API KEY /wp-admin/options-general.php?page=google_maps_api_key | 3.26 | 32.48 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.36 | 30.94 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Neptune Business
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 15.06 ▲0.70 | 9.88 ▲8.14 | 38.88 ▼3.68 |
Dashboard /wp-admin | 2,270 ▲93 | 5.54 ▼0.01 | 101.74 ▲14.39 | 41.90 ▲2.98 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.92 ▲0.90 | 47.71 ▲11.82 | 44.34 ▲8.75 |
Add New Post /wp-admin/post-new.php | 1,591 ▲63 | 23.58 ▲0.47 | 672.10 ▼0.11 | 37.80 ▼11.31 |
Media Library /wp-admin/upload.php | 1,492 ▲92 | 5.14 ▲0.98 | 104.08 ▲5.02 | 51.22 ▲10.42 |
Google API KEY /wp-admin/options-general.php?page=google_maps_api_key | 876 | 2.48 | 33.90 | 26.98 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,045 | 2.47 | 35.12 | 30.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/neptune-business/admin/partials/neptune-busines-admin-display.php
- > /wp-content/plugins/neptune-business/public/partials/neptune-busines-public-display.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/neptune-business/includes/libraries/tgm/example.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function get_field() in wp-content/plugins/neptune-business/templates/blocks/blogs.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/neptune-business/templates/home-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_field() in wp-content/plugins/neptune-business/templates/blocks/maps.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_field() in wp-content/plugins/neptune-business/templates/blocks/header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_field() in wp-content/plugins/neptune-business/templates/blocks/feature.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/neptune-business/includes/libraries/tgm/class-tgm-plugin-activation.php:2016
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neptune-business/templates/class-neptune-business-template.php:153
- > PHP Fatal error
Uncaught Error: Call to undefined function get_field() in wp-content/plugins/neptune-business/templates/blocks/cta.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=tgmpa-install-plugins
- > Network (severe)
wp-content/plugins/neptune-business/admin/js/gmaps.js?ver=982060008 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=tgmpa-install-plugins
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?libraries=places&key&ver=6.3.1 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== neptune-business ===
)
neptune-business/neptune-busines.php 85% from 13 tests
The principal PHP file in "Neptune Business" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("neptune-business.php" instead of "neptune-busines.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,967 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 734 | 2,308 | 3,168 |
JSON | 1 | 0 | 0 | 813 |
Markdown | 4 | 185 | 0 | 778 |
CSS | 2 | 13 | 15 | 146 |
JavaScript | 3 | 48 | 123 | 62 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 8 | 5.88% |
▷ Public methods | 105 | 77.21% |
▷ Protected methods | 23 | 16.91% |
▷ Private methods | 8 | 5.88% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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
No PNG images were found in this plugin