83% nagishly

Code Review | Nagishly

WordPress plugin Nagishly scored 83% from 54 tests.

About plugin

  • Plugin page: nagishly
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.6
  • WordPress version: 6.3.1
  • First release: Dec 2, 2018
  • Latest release: Dec 3, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: eyalborgman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,110 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.42ms] Passed 4 tests

An overview of server-side resources used by Nagishly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.52 ▼2.24
Dashboard /wp-admin3.34 ▲0.0445.22 ▼4.47
Posts /wp-admin/edit.php3.39 ▲0.0349.49 ▲0.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.63 ▲0.69
Media Library /wp-admin/upload.php3.26 ▲0.0335.28 ▲1.29
nagishly /wp-admin/options-general.php?page=nagishly3.2331.73

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Nagishly
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲8913.67 ▼0.702.00 ▲0.1644.59 ▼2.23
Dashboard /wp-admin2,233 ▲455.85 ▲0.95103.81 ▼22.4839.65 ▼3.56
Posts /wp-admin/edit.php2,112 ▲232.04 ▲0.0340.81 ▲3.8336.66 ▲3.29
Add New Post /wp-admin/post-new.php1,560 ▲4118.33 ▼4.83599.20 ▼56.2166.88 ▲13.13
Media Library /wp-admin/upload.php1,406 ▲214.24 ▲0.0695.06 ▼6.1840.65 ▼5.78
nagishly /wp-admin/options-general.php?page=nagishly8752.0525.1931.66

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Good news, no errors were detected

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 take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/nagishly/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/nagishly/views/sidebar.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nagishly/ngly.php:27
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/nagishly/views/dashboard-notices.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: accessibility

nagishly/ngly.php 77% from 13 tests

The primary PHP file in "Nagishly" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nagishly.php" instead of "ngly.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)

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
Good job! No executable or dangerous file extensions detected242 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42871172
PO File1131570

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/nagishly-logo.png54.71KB3.58KB▼ 93.46%