90% no-nonsense

Code Review | No Nonsense

WordPress plugin No Nonsense scored90%from 54 tests.

About plugin

  • Plugin page: no-nonsense
  • Plugin version: 3.3.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2021
  • Latest release: Nov 20, 2023
  • Number of updates: 72
  • Update frequency: every 9.8 days
  • Top authors: room34 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /21,556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼1.45ms] Passed 4 tests

Analyzing server-side resources used by No Nonsense
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2443.17 ▼1.58
Dashboard /wp-admin3.53 ▲0.1853.83 ▼13.13
Posts /wp-admin/edit.php3.64 ▲0.2858.12 ▲8.08
Add New Post /wp-admin/post-new.php6.13 ▲0.2495.12 ▲0.83
Media Library /wp-admin/upload.php3.45 ▲0.2246.79 ▲11.87
No Nonsense /wp-admin/options-general.php?page=no-nonsense3.4744.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for No Nonsense
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10214.34 ▲0.141.67 ▲0.0340.25 ▼6.69
Dashboard /wp-admin2,205 ▲245.65 ▼0.0794.25 ▼12.3042.79 ▲1.01
Posts /wp-admin/edit.php2,113 ▲132.00 ▲0.0439.40 ▲0.8832.61 ▼2.72
Add New Post /wp-admin/post-new.php1,544 ▲1824.78 ▲1.64613.77 ▼17.8261.74 ▲8.88
Media Library /wp-admin/upload.php1,410 ▲74.23 ▲0.0396.59 ▼5.6945.02 ▲0.22
No Nonsense /wp-admin/options-general.php?page=no-nonsense2,1501.9437.9944.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • r34nono_version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in no-nonsense/assets to your readme.txt
You can look at the official readme.txt

no-nonsense/no-nonsense.php Passed 13 tests

The principal PHP file in "No Nonsense" v. 3.3.1 is loaded by WordPress automatically on each request
78 characters long description:
The fastest, cleanest way to get rid of the parts of WordPress you don't need.

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
No dangerous file extensions were detected1,509 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP42551031,175
CSS4520270
JavaScript28562
SVG2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions62
▷ Named functions6096.77%
▷ Anonymous functions23.23%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin