10% software-news

Code Review | Software News

WordPress plugin Software News scored10%from 54 tests.

About plugin

  • Plugin page: software-news
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3
  • WordPress version: 6.3.1
  • First release: Dec 11, 2019
  • Latest release: Dec 11, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mganss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /409 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/software-news/updatestar-news.php+201
    Function create_function() is deprecated

Server metrics [RAM: ▼1.84MB] [CPU: ▼53.25ms] Passed 4 tests

Analyzing server-side resources used by Software News
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.17 ▼33.82
Dashboard /wp-admin2.16 ▼1.146.04 ▼43.21
Posts /wp-admin/edit.php2.16 ▼1.197.00 ▼43.90
Add New Post /wp-admin/post-new.php2.16 ▼3.727.06 ▼92.07
Media Library /wp-admin/upload.php2.16 ▼1.075.74 ▼26.85

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Software News
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.082.12 ▲0.3843.47 ▲4.01
Dashboard /wp-admin2,203 ▲155.84 ▲0.97104.95 ▼3.2541.78 ▼4.56
Posts /wp-admin/edit.php2,086 ▼02.05 ▲0.0236.04 ▼0.3330.50 ▼6.65
Add New Post /wp-admin/post-new.php1,533 ▲1921.02 ▲3.55675.12 ▲60.2054.15 ▲4.89
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.05115.54 ▲17.6245.75 ▼1.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/software-news/updatestar-news.php+201
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_updatestar-news

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/software-news/updatestar-news.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHWPINC/class-simplepie.php): failed to open stream: No such file or directory in wp-content/plugins/software-news/Date.php on line 46
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-simplepie.php' (include_path='.:/usr/share/php') in wp-content/plugins/software-news/Date.php on line 46
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/software-news/Date.php on line 46
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/software-news/Date.php on line 46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: news, software, updatestar

software-news/updatestar-news.php 92% from 13 tests

The principal PHP file in "Software News" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("software-news.php" instead of "updatestar-news.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected179 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP236132179

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.00
▷ Minimum class complexity9.00
▷ Maximum class complexity33.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected