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.00MB] [CPU: ▼6.18ms] Passed 4 tests
A check of server-side resources used by Bstone Light
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.90 ▼2.85 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.54 ▲1.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.96 ▼1.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.31 ▼17.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.59 ▼2.90 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Bstone Light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.11 | 1.82 ▲0.19 | 42.69 ▼0.42 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼0.06 | 106.52 ▼13.59 | 40.08 ▼7.45 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.04 ▼0.12 | 38.76 ▼1.39 | 34.08 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 18.43 ▼4.98 | 608.96 ▼75.92 | 58.60 ▲7.15 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.04 | 96.67 ▼15.47 | 39.56 ▼8.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bstone-light/inc/classes/class-bstone-light.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bstone-light/inc/bstone-widgets-init.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bstone-light/inc/classes/widgets/class-bstone-latest-articles-widget.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bstone-light/inc/classes/widgets/social-icons/class-bstone-social-icons-widget.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bstone-light/inc/classes/widgets/class-bstone-search-widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: one click import, widgets, theme demos, bstone
bstone-light/bstone-light.php Passed 13 tests
The main PHP script in "Bstone Light" version 1.0.5 is automatically included on every request by WordPress
50 characters long description:
Add extra features like widgets and import/export.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,793 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 384 | 474 | 2,882 |
CSS | 4 | 139 | 20 | 1,309 |
JavaScript | 5 | 58 | 35 | 560 |
SVG | 1 | 0 | 0 | 42 |
PHP code Passed 2 tests
Analyzing 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.28 |
Average class complexity | 20.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/assets/images/logo.png | 5.28KB | 2.89KB | ▼ 45.22% |
inc/assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |