78% nelio-content

Code Review | Nelio Content - Best Editorial Calendar & Social Media Scheduling

WordPress plugin Nelio Content - Best Editorial Calendar & Social Media Scheduling scored78%from 54 tests.

About plugin

  • Plugin page: nelio-content
  • Plugin version: 3.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 25, 2016
  • Latest release: Nov 9, 2023
  • Number of updates: 356
  • Update frequency: every 7.5 days
  • Top authors: davilera (100%)

Code review

54 tests

User reviews

89 reviews

Install metrics

6,000+ active /411,696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.90MB] [CPU: ▲6.39ms] Passed 4 tests

Analyzing server-side resources used by Nelio Content - Best Editorial Calendar & Social Media Scheduling
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲0.7342.11 ▼1.83
Dashboard /wp-admin4.27 ▲0.9759.05 ▲10.76
Posts /wp-admin/edit.php4.33 ▲0.9664.39 ▲15.69
Add New Post /wp-admin/post-new.php6.84 ▲0.9499.38 ▲0.92
Media Library /wp-admin/upload.php4.20 ▲0.9653.61 ▲22.00

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 176 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
nc_version
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Nelio Content - Best Editorial Calendar & Social Media Scheduling
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8814.32 ▼0.381.96 ▲0.3743.76 ▼0.82
Dashboard /wp-admin2,233 ▲565.66 ▲0.1295.01 ▲2.2241.75 ▼0.34
Posts /wp-admin/edit.php2,142 ▲421.98 ▼0.0339.84 ▼0.4134.51 ▲0.61
Add New Post /wp-admin/post-new.php1,551 ▲2525.06 ▲1.94661.21 ▲11.9262.56 ▲9.27
Media Library /wp-admin/upload.php1,439 ▲394.20 ▼0.01101.99 ▼2.2141.13 ▼0.81

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • nc_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-radio-setting.php
    • > /wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-tabs.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-radio-setting.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-range-setting.php:31
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-radio-setting.php on line 36
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-tabs.php on line 21
    • > PHP Notice
      Undefined variable: tabs in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-tabs.php on line 21
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-radio-setting.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-text-area-setting.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-input-setting.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-select-setting.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nelio-content/includes/lib/settings/partials/nelio-content-checkbox-setting.php:28

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 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

nelio-content/nelio-content.php 92% from 13 tests

The main PHP script in "Nelio Content - Best Editorial Calendar & Social Media Scheduling" version 3.0.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 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
No dangerous file extensions were detected12,449 lines of code in 165 files:
LanguageFilesBlank linesComment linesLines of code
PHP1173,2724,84811,603
Markdown11140472
CSS1800171
JavaScript271217160
SVG20043

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.29
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes62
▷ Abstract classes46.45%
▷ Concrete classes5893.55%
▷ Final classes00.00%
Methods565
▷ Static methods366.37%
▷ Public methods39269.38%
▷ Protected methods132.30%
▷ Private methods16028.32%
Functions164
▷ Named functions8451.22%
▷ Anonymous functions8048.78%
Constants11
▷ Global constants218.18%
▷ Class constants981.82%
▷ Public constants9100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/lib/settings/assets/images/help.png0.30KB0.32KB0.00%
assets/dist/images/nc-efi-placeholder.png0.37KB0.35KB▼ 5.51%