77% nuntium

Code Review | Nuntium

WordPress plugin Nuntium scored77%from 54 tests.

About plugin

  • Plugin page: nuntium
  • Plugin version: 0.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Jul 15, 2022
  • Number of updates: 39
  • Update frequency: every 61.6 days
  • Top authors: xcedo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.08MB] [CPU: ▼8.22ms] Passed 4 tests

A check of server-side resources used by Nuntium
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▼0.5618.37 ▼21.17
Dashboard /wp-admin3.38 ▲0.0846.58 ▼8.77
Posts /wp-admin/edit.php3.46 ▲0.1149.90 ▲1.17
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.68 ▼2.60
Media Library /wp-admin/upload.php3.30 ▲0.0736.38 ▼0.33
Newsletter Issues /wp-admin/edit-tags.php?taxonomy=newsletter3.2741.96

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Nuntium
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.62 ▲0.031.72 ▲0.0840.52 ▲0.18
Dashboard /wp-admin2,211 ▲315.64 ▼0.0389.95 ▼12.0736.87 ▼7.77
Posts /wp-admin/edit.php2,172 ▲692.00 ▲0.0340.68 ▲4.6235.98 ▲0.79
Add New Post /wp-admin/post-new.php6,320 ▲4,79426.07 ▲2.47935.13 ▲230.0060.65 ▼4.88
Media Library /wp-admin/upload.php1,416 ▲164.16 ▼0.0392.13 ▼10.6044.69 ▼0.67
Newsletter Issues /wp-admin/edit-tags.php?taxonomy=newsletter1,4902.1328.1141.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit-tags.php?taxonomy=newsletter
    • > Notice in wp-content/plugins/nuntium/nuntium.php+226
    Trying to get property 'term_id' of non-object

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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function show_admin_bar() in wp-content/plugins/nuntium/templates/nuntium.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nuntium/nuntium.php:53

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Create a new Newsletter template.), #2 (Pick a post for the Newsletter and select the Sort order.), #3 (Hover over the Newsletter and click on View link to see the actual Newsletter.)
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
You can look at the official readme.txt

nuntium/nuntium.php 85% from 13 tests

The main file in "Nuntium" v. 0.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 232 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected364 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP318625364

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
templates/images/logo.png5.60KB2.30KB▼ 58.90%