84% news-list-shortcode

Code Review | News List ShortCode

WordPress plugin News List ShortCode scored84%from 54 tests.

About plugin

  • Plugin page: news-list-shortcode
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Aug 14, 2015
  • Latest release: Jul 26, 2018
  • Number of updates: 24
  • Update frequency: every 44.9 days
  • Top authors: tkc49 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,796 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.47ms] Passed 4 tests

Server-side resources used by News List ShortCode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0741.36 ▲0.48
Dashboard /wp-admin3.41 ▲0.0253.87 ▼12.49
Posts /wp-admin/edit.php3.52 ▲0.1352.69 ▼2.19
Add New Post /wp-admin/post-new.php5.99 ▲0.0694.30 ▼23.69
Media Library /wp-admin/upload.php3.33 ▲0.0638.96 ▲0.54
Genre /wp-admin/edit-tags.php?taxonomy=news_genre&post_type=news3.3336.85
All News /wp-admin/edit.php?post_type=news3.3837.49
Add New /wp-admin/post-new.php?post_type=news3.4653.68

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for News List ShortCode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.35 ▼0.301.63 ▲0.1645.89 ▲3.33
Dashboard /wp-admin2,226 ▲495.62 ▼0.0394.26 ▲5.5042.11 ▼0.99
Posts /wp-admin/edit.php2,131 ▲312.02 ▲0.0837.51 ▼0.2831.48 ▼4.83
Add New Post /wp-admin/post-new.php1,552 ▲2423.15 ▲0.05672.78 ▼72.3362.24 ▲3.17
Media Library /wp-admin/upload.php1,431 ▲344.20 ▼0.0497.67 ▼23.5540.95 ▼8.85
Genre /wp-admin/edit-tags.php?taxonomy=news_genre&post_type=news1,3022.2427.9132.47
All News /wp-admin/edit.php?post_type=news1,1121.9431.8330.34
Add New /wp-admin/post-new.php?post_type=news2,4127.64170.9764.47

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/news-list-shortcode/news-list-shortcode.php:15

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: news, post list, shortcode

news-list-shortcode/news-list-shortcode.php 92% from 13 tests

"News List ShortCode" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin168 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16241168

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected