84% newscred-publishing

Code Review | Welcome Software Publishing

WordPress plugin Welcome Software Publishing scored84%from 54 tests.

About plugin

  • Plugin page: newscred-publishing
  • Plugin version: 0.0.30
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 2, 2014
  • Latest release: Nov 19, 2023
  • Number of updates: 43
  • Update frequency: every 78.4 days
  • Top authors: newscred (55.81%)zhdzmn (18.6%)riyadhalnur (16.28%)rajuru (16.28%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.68ms] Passed 4 tests

This is a short check of server-side resources used by Welcome Software Publishing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.28 ▼4.48
Dashboard /wp-admin3.32 ▼0.0346.28 ▼18.42
Posts /wp-admin/edit.php3.37 ▲0.0146.13 ▼1.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.27 ▼2.27
Media Library /wp-admin/upload.php3.24 ▲0.0137.25 ▲4.63

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Welcome Software Publishing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.18 ▲0.041.79 ▲0.0839.17 ▼11.90
Dashboard /wp-admin2,198 ▲215.58 ▼0.0494.67 ▲0.3040.76 ▼3.36
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0640.33 ▲0.5136.76 ▼0.15
Add New Post /wp-admin/post-new.php1,526 ▼223.17 ▼0.12668.32 ▲17.5854.90 ▲6.90
Media Library /wp-admin/upload.php1,400 ▲64.16 ▲0.0297.46 ▼1.5445.43 ▲4.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/newscred-publishing/yoast.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/newscred-publishing/newscred.php:14
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/newscred-publishing/yoast.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/newscred-publishing/yoast.php on line 2

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: enterprise, marketing, cmc, newscred, publishing...

newscred-publishing/newscred.php 92% from 13 tests

"Welcome Software Publishing" version 0.0.30's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("newscred-publishing.php" instead of "newscred.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected285 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28114269
Markdown14016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin