Benchmarks
Plugin footprint Passed 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.12MB] [CPU: ▼166.68ms] Passed 4 tests
This is a short check of server-side resources used by Neptune Style Element
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.87 | 31.82 ▲0.88 |
Dashboard /wp-admin | 3.17 ▲0.12 | 49.27 ▲4.40 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 45.78 ▲5.06 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 90.37 ▼667.21 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 32.88 ▼4.77 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options |
---|
neptune-style-element |
Browser metrics Passed 4 tests
A check of browser resources used by Neptune Style Element
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲110 | 15.91 ▲0.19 | 7.96 ▼2.89 | 50.71 ▲0.50 |
Dashboard /wp-admin | 2,986 ▲55 | 6.07 ▼0.11 | 153.38 ▲8.82 | 106.15 ▼1.44 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.00 | 66.30 ▲3.00 | 90.31 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,696 ▼1,997 | 18.73 ▲3.62 | 381.12 ▼51.53 | 108.58 ▲1.62 |
Media Library /wp-admin/upload.php | 1,830 ▲20 | 5.01 ▼0.04 | 142.92 ▼11.75 | 123.83 ▼4.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/neptune-style-element/inc/config.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/neptune-style-element/inc/class-neptune-style-element-font-family-control.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
- Screenshots: Add an image for screenshot #1 (Customizer panel)
neptune-style-element/neptune-style-element.php Passed 13 tests
The main PHP script in "Neptune Style Element" version 1.0 is automatically included on every request by WordPress
40 characters long description:
Easy customize element for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,675 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 93 | 264 | 1,366 |
JavaScript | 4 | 59 | 53 | 207 |
CSS | 3 | 3 | 0 | 102 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.29 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 24 | 70.59% |
▷ Protected methods | 10 | 29.41% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected