84% rename-post-to-news

Code Review | Rename Post To News

WordPress plugin Rename Post To News scored84%from 54 tests.

About plugin

  • Plugin page: rename-post-to-news
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Sep 27, 2016
  • Number of updates: 15
  • Update frequency: every 49.8 days
  • Top authors: urre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,912 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.48ms] Passed 4 tests

An overview of server-side resources used by Rename Post To News
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0253.82 ▲13.05
Dashboard /wp-admin3.33 ▼0.0251.80 ▼15.23
Posts /wp-admin/edit.php3.38 ▲0.0252.20 ▼1.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.44 ▼15.61
Media Library /wp-admin/upload.php3.25 ▲0.0237.13 ▲2.25

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Rename Post To News: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.24 ▼0.112.36 ▲0.5565.33 ▲22.79
Dashboard /wp-admin2,200 ▲235.51 ▼0.0683.13 ▼15.2839.86 ▼4.01
Posts /wp-admin/edit.php2,102 ▼12.00 ▲0.0234.77 ▼6.9434.58 ▼2.05
Add New Post /wp-admin/post-new.php1,528 ▼022.98 ▼0.20673.39 ▲55.2759.16 ▲5.33
Media Library /wp-admin/upload.php1,399 ▲54.21 ▼0.0095.86 ▼2.5842.48 ▼3.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rename-post-to-news/rename-post-to-news.php:34

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #1 (Rename Post To News) image required
The official readme.txt is a good inspiration

rename-post-to-news/rename-post-to-news.php 92% from 13 tests

Analyzing the main PHP file in "Rename Post To News" version 1.1.3
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

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 plugin150 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File26611675
PHP1212845
Markdown113027
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin