84% listnerd-shortcodes

Code Review | Listnerd Shortcodes

WordPress plugin Listnerd Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: listnerd-shortcodes
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Jun 21, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: horn666 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /741 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.15MB] [CPU: ▼18.35ms] Passed 4 tests

This is a short check of server-side resources used by Listnerd Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0623.61 ▼20.36
Dashboard /wp-admin3.32 ▲0.0248.01 ▼5.62
Posts /wp-admin/edit.php3.37 ▲0.0246.47 ▼5.15
Add New Post /wp-admin/post-new.php5.32 ▼0.5768.44 ▼42.27
Media Library /wp-admin/upload.php3.25 ▲0.0236.44 ▼1.29

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Listnerd Shortcodes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.101.84 ▲0.0742.54 ▼0.71
Dashboard /wp-admin2,198 ▲185.63 ▲0.0186.11 ▼0.1339.22 ▲2.85
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0337.15 ▼0.6436.67 ▲3.76
Add New Post /wp-admin/post-new.php1,526 ▼223.24 ▲0.17676.67 ▼11.5357.22 ▲4.49
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0197.88 ▼13.0344.76 ▼2.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/listnerd-shortcodes/listnerd-shortcodes.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: shortcode, listnerd, embed, post content

listnerd-shortcodes/listnerd-shortcodes.php Passed 13 tests

The entry point to "Listnerd Shortcodes" version 0.0.1 is a PHP file that has certain tags in its header comment area
61 characters long description:
Adds shortcodes to show the content of list from Listnerd.com

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
There were no executable files found in this plugin133 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3186373
CSS17060

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods120.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin