Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/ns-author-widget/ns-author-widget.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; ns_aw_info has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.29ms] Passed 4 tests
Analyzing server-side resources used by NS Author Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.32 ▼40.28 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.26 ▼43.90 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.68 ▼39.85 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.28 ▼85.13 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.35 ▼26.16 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_ns_aw_info |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for NS Author Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 13.22 ▼1.18 | 1.79 ▼0.35 | 39.80 ▼4.35 |
Dashboard /wp-admin | 2,206 ▲21 | 4.85 ▼1.02 | 99.41 ▼1.05 | 40.62 ▼0.93 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▼0.03 | 38.85 ▲1.87 | 35.69 ▲2.89 |
Add New Post /wp-admin/post-new.php | 1,538 ▲1 | 23.42 ▲0.20 | 633.51 ▲14.37 | 54.16 ▼5.37 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.16 ▼0.09 | 97.97 ▼6.31 | 43.51 ▼0.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/ns-author-widget/ns-author-widget.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; ns_aw_info has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_ns_aw_info
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-author-widget/ns-author-widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #5 (Widget Panel.)
ns-author-widget/ns-author-widget.php 92% from 13 tests
The main file in "NS Author Widget" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin305 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 11 | 155 |
CSS | 1 | 32 | 1 | 150 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/link.png | 0.46KB | 0.44KB | ▼ 4.83% |
image/googleplus.png | 1.78KB | 1.59KB | ▼ 10.59% |
image/facebook.png | 1.89KB | 1.65KB | ▼ 12.42% |
image/youtube.png | 1.87KB | 1.63KB | ▼ 12.91% |
image/twitter.png | 2.11KB | 1.65KB | ▼ 21.70% |