Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/nash-operating-system/nash-operating-system.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; NashOS has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼48.52ms] Passed 4 tests
A check of server-side resources used by Nash.Operating.System
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.40 ▼36.93 |
Dashboard /wp-admin | 2.29 ▼1.01 | 10.28 ▼37.62 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 11.48 ▼37.40 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.73 ▼82.14 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 10.19 ▼23.66 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_nashos |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nash.Operating.System
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.20 | 1.70 ▼0.25 | 41.05 ▼14.90 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.00 | 108.99 ▲6.25 | 42.05 ▲1.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.96 ▼0.05 | 40.06 ▲2.53 | 35.64 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,534 ▲17 | 23.36 ▲5.68 | 668.65 ▲26.21 | 67.46 ▲14.31 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.05 | 94.63 ▼10.01 | 43.30 ▼0.49 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in NashOS is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_nashos
- can_compress_scripts
- db_upgraded
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nash-operating-system/nash-operating-system.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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 require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (This shows the plugin once you found it after searching the wordpress plugins.), #2 (This shows the rendering of the Widget in the sidebar of a WP blog.), #3 (This shows how to Activate the plugin in the Plugins menu in the WP Admin backend.), #4 (Configuring the settings for the Nash.Operating.System widget in the WP Admin backend.)
nash-operating-system/nash-operating-system.php Passed 13 tests
"Nash.Operating.System" version 2015.05.29's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
137 characters long description:
A WordPress Widget that allows to display items in the sidebar from a unique seller of any site that is powered by Nash.Operating.System.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin77 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 11 | 77 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 2 | 25.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.25MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 44.74KB | 22.10KB | ▼ 50.60% |
screenshot-2.png | 113.63KB | 48.09KB | ▼ 57.68% |
screenshot-1.png | 75.92KB | 33.70KB | ▼ 55.62% |
screenshot-3.png | 22.11KB | 10.83KB | ▼ 51.04% |