84% news-wall

Code Review | News Wall

WordPress plugin News Wall scored84%from 54 tests.

About plugin

  • Plugin page: news-wall
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2022
  • Latest release: Mar 3, 2022
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: tsina (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /530 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.80ms] Passed 4 tests

An overview of server-side resources used by News Wall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.79 ▼0.51
Dashboard /wp-admin3.38 ▲0.0753.45 ▲1.08
Posts /wp-admin/edit.php3.43 ▲0.0748.76 ▲0.74
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.17 ▲5.11
Media Library /wp-admin/upload.php3.30 ▲0.0737.16 ▲1.88
Help and introduction /wp-admin/admin.php?page=nw_help3.2631.82
Settings /wp-admin/admin.php?page=nw_options3.2731.52
News /wp-admin/admin.php?page=nw_newslist_page3.2532.70

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for News Wall
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.17 ▼1.211.58 ▲0.0442.16 ▼5.36
Dashboard /wp-admin2,240 ▲525.85 ▲0.04110.58 ▲6.0143.29 ▲0.93
Posts /wp-admin/edit.php2,120 ▲312.04 ▲0.0234.06 ▼4.2233.94 ▲0.05
Add New Post /wp-admin/post-new.php1,567 ▲5018.77 ▲1.02583.44 ▼65.7856.16 ▲4.68
Media Library /wp-admin/upload.php1,422 ▲314.33 ▲0.0896.69 ▼5.9043.15 ▼1.98
Help and introduction /wp-admin/admin.php?page=nw_help8652.0224.6031.12
Settings /wp-admin/admin.php?page=nw_options8212.0325.0223.77
News /wp-admin/admin.php?page=nw_newslist_page7952.0324.6427.15

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/news-wall/plugin-panel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/news-wall/news-wall.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/news-wall/shortcode.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: informing, news, notifications, notices, communication with users

news-wall/news-wall.php 85% from 13 tests

The main file in "News Wall" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.2")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")

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
Success! There were no dangerous files found in this plugin1,113 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File3197199619
PHP4620491
CSS2002
JavaScript1001

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.33
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
images/announce.png0.52KB0.61KB0.00%
images/close-section.png0.52KB0.62KB0.00%