Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼18.40ms] Passed 4 tests
An overview of server-side resources used by Simple Settings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.75 ▼0.68 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.17 ▼14.81 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.17 ▲6.58 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.63 | 37.78 ▼56.65 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 35.83 ▼1.46 |
Simple Settings /wp-admin/edit.php?post_type=ilmss | 3.39 | 40.08 |
Add New /wp-admin/post-new.php?post_type=ilmss | 3.25 | 37.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Settings
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 13.16 ▼1.15 | 2.21 ▲0.18 | 46.03 ▼1.07 |
Dashboard /wp-admin | 2,236 ▲48 | 4.87 ▼0.98 | 99.15 ▼16.37 | 39.34 ▼5.27 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 1.99 ▼0.05 | 37.24 ▼3.29 | 34.62 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,563 ▲49 | 18.78 ▲1.24 | 607.37 ▼17.78 | 50.84 ▲0.32 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.22 ▼0.01 | 96.01 ▼7.36 | 44.56 ▲0.43 |
Simple Settings /wp-admin/edit.php?post_type=ilmss | 1,086 | 1.98 | 38.23 | 28.83 |
Add New /wp-admin/post-new.php?post_type=ilmss | 1,535 | 2.55 | 52.14 | 64.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=ilmss
- > Notice in wp-content/plugins/simple-settings/ilmss.php+361
Undefined index: ilmss_type
- > GET request to /wp-admin/post-new.php?post_type=ilmss
- > Notice in wp-content/plugins/simple-settings/ilmss.php+379
Trying to get property 'post_title' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ilmss
- > Notice in wp-content/plugins/simple-settings/ilmss.php+384
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/post-new.php?post_type=ilmss
- > Notice in wp-content/plugins/simple-settings/ilmss.php+314
Undefined index: type
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ilmss
- > Notice in wp-content/plugins/simple-settings/ilmss.php+315
Trying to access array offset on value of type null
- > GET request to /wp-admin/post-new.php?post_type=ilmss
- > Notice in wp-content/plugins/simple-settings/ilmss.php+315
Undefined index: value
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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-settings/ilmss.php:44
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: settings
simple-settings/ilmss.php 92% from 13 tests
The main PHP script in "Simple Settings" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-settings.php" instead of "ilmss.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected466 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 188 | 254 | 308 |
CSS | 1 | 28 | 41 | 112 |
JavaScript | 1 | 41 | 55 | 46 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 2 | 10.00% |
▷ Private methods | 1 | 5.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/bitbucket.png | 16.47KB | 5.96KB | ▼ 63.81% |
images/icons/plugin.png | 9.85KB | 3.77KB | ▼ 61.69% |