10% js-latest-new-updates

Code Review | JS Latest New Updates

WordPress plugin JS Latest New Updates scored 10% from 54 tests.

About plugin

  • Plugin page: js-latest-new-upd...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2018
  • Latest release: Jan 29, 2018
  • Number of updates: 5
  • Update frequency: every 3.6 days
  • Top authors: neeyash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 488 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/js-latest-new-updates/JS-latest-new-updates.php+103
    require_once(wp-content/plugins/js-latest-new-updates/includes/js_latest_new_updates_table_creation.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.69ms] Passed 4 tests

A check of server-side resources used by JS Latest New Updates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.06 ▲0.17
Dashboard /wp-admin3.31 ▲0.0047.78 ▲2.21
Posts /wp-admin/edit.php3.36 ▲0.0049.77 ▲4.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.97 ▼0.14
Media Library /wp-admin/upload.php3.23 ▲0.0038.67 ▲6.99

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for JS Latest New Updates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.34 ▼0.954.00 ▲2.3438.48 ▼6.79
Dashboard /wp-admin2,206 ▲184.89 ▲0.03110.68 ▲4.0441.31 ▼6.32
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0038.98 ▲1.3835.56 ▼0.87
Add New Post /wp-admin/post-new.php1,544 ▲718.60 ▼4.71600.30 ▼85.2849.75 ▼11.62
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0193.42 ▼8.2039.88 ▼5.83

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/js-latest-new-updates/js_latest_new_updates_delete.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors not specified
  • Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6 in js-latest-new-updates/assets to your readme.txt
The official readme.txt is a good inspiration

js-latest-new-updates/JS-latest-new-updates.php 85% from 13 tests

The primary PHP file in "JS Latest New Updates" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("js-latest-new-updates.php" instead of "JS-latest-new-updates.php")

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
Good job! No executable or dangerous file extensions detected305 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP64416305

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin