84% nowon

Code Review | autometa's NOWON

WordPress plugin autometa's NOWON scored 84% from 54 tests.

About plugin

  • Plugin page: nowon
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.9.2
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: Jan 18, 2018
  • Number of updates: 21
  • Update frequency: every 28.4 days
  • Top authors: JorgeAmVF (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 909 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.57ms] Passed 4 tests

Analyzing server-side resources used by autometa's NOWON
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.57 ▲1.69
Dashboard /wp-admin3.31 ▲0.0149.64 ▲3.11
Posts /wp-admin/edit.php3.36 ▲0.0046.94 ▲2.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.16 ▼7.49
Media Library /wp-admin/upload.php3.23 ▲0.0034.60 ▲1.45

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for autometa's NOWON
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.16 ▼1.211.73 ▼0.2142.74 ▲0.21
Dashboard /wp-admin2,206 ▲215.09 ▲0.19128.91 ▲25.5950.61 ▲7.72
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0436.01 ▼2.9231.29 ▼0.70
Add New Post /wp-admin/post-new.php1,535 ▲223.09 ▼0.28636.91 ▲12.4960.13 ▲10.66
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0193.28 ▼4.3240.50 ▼3.54

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nowon/nowon.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: time, current time, current date, shortcode, automation...

nowon/nowon.php Passed 13 tests

This is the main PHP file of "autometa's NOWON" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
It generates current time and date in pages, posts, portfolios or products simply via: [nowon] and [nowadays].

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162312

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected