10% nash-operating-system

Code Review | Nash.Operating.System

WordPress plugin Nash.Operating.System scored 10% from 54 tests.

About plugin

  • Plugin page: nash-operating-sy...
  • Plugin version: 2015.05.29
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.0
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Dec 8, 2018
  • Number of updates: 16
  • Update frequency: every 92.0 days
  • Top authors: nashworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 696 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.40 ▼36.93
Dashboard /wp-admin2.29 ▼1.0110.28 ▼37.62
Posts /wp-admin/edit.php2.29 ▼1.0611.48 ▼37.40
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.73 ▼82.14
Media Library /wp-admin/upload.php2.29 ▼0.9410.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.201.70 ▼0.2541.05 ▼14.90
Dashboard /wp-admin2,206 ▲184.85 ▼1.00108.99 ▲6.2542.05 ▲1.37
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.0540.06 ▲2.5335.64 ▲1.53
Add New Post /wp-admin/post-new.php1,534 ▲1723.36 ▲5.68668.65 ▲26.2167.46 ▲14.31
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0594.63 ▼10.0143.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

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.)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP101177

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 code0.10
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-4.png44.74KB22.10KB▼ 50.60%
screenshot-2.png113.63KB48.09KB▼ 57.68%
screenshot-1.png75.92KB33.70KB▼ 55.62%
screenshot-3.png22.11KB10.83KB▼ 51.04%