Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.50ms] Passed 4 tests
This is a short check of server-side resources used by Netgsm
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.98 ▼1.20 |
Dashboard /wp-admin | 3.40 ▲0.10 | 51.03 ▼0.56 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 51.16 ▼1.44 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 97.38 ▲2.90 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.62 ▲1.21 |
Server storage [IO: ▲5.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Netgsm
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 13.34 ▼1.04 | 1.67 ▼0.05 | 43.04 ▲1.10 |
Dashboard /wp-admin | 2,208 ▲34 | 5.02 ▼0.57 | 105.88 ▲15.00 | 100.41 ▲59.99 |
Posts /wp-admin/edit.php | 2,128 ▲31 | 2.49 ▲0.49 | 40.81 ▲0.28 | 37.16 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,705 ▲160 | 22.89 ▼0.30 | 666.30 ▲62.62 | 33.37 ▼35.50 |
Media Library /wp-admin/upload.php | 1,422 ▲28 | 4.50 ▲0.33 | 103.19 ▲4.08 | 81.86 ▲35.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/netgsm/pages/voip.php
- > /wp-content/plugins/netgsm/pages/settings.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/netgsm/pages/settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/netgsm/pages/asistan.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/netgsm/pages/contactform7.php:11
- > PHP Notice
Trying to get property 'roles' of non-object in wp-content/plugins/netgsm/pages/settings.php on line 4
- > PHP Notice
Undefined variable: session in wp-content/plugins/netgsm/pages/settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/netgsm/pages/iys.php:17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
netgsm/index.php 85% from 13 tests
Analyzing the main PHP file in "Netgsm" version 2.8
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("netgsm.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 599 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected37,679 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 0 | 0 | 12,513 |
CSS | 10 | 2,383 | 33 | 11,168 |
PHP | 10 | 543 | 158 | 5,854 |
JavaScript | 8 | 761 | 613 | 4,562 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
XML | 3 | 0 | 0 | 56 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 52.67 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.00% |
Functions | 48 | |
▷ Named functions | 48 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/image/netgsm.png | 1.19KB | 0.90KB | ▼ 24.82% |
lib/image/netasistan-ust-logo.png | 2.12KB | 1.17KB | ▼ 44.59% |
lib/image/logo.png | 2.86KB | 2.97KB | 0.00% |