66% notipress-noticias

Code Review | NotiPress Noticias

WordPress plugin NotiPress Noticias scored66%from 54 tests.

About plugin

  • Plugin page: notipress-noticias
  • Plugin version: 1.4.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2020
  • Latest release: May 16, 2023
  • Number of updates: 102
  • Update frequency: every 9.2 days
  • Top authors: ntpmx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,896 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼5.39ms] Passed 4 tests

Server-side resources used by NotiPress Noticias
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.21 ▲4.19
Dashboard /wp-admin3.54 ▲0.2045.41 ▼18.54
Posts /wp-admin/edit.php3.66 ▲0.3050.78 ▲5.65
Add New Post /wp-admin/post-new.php6.12 ▲0.2481.60 ▼12.84
Media Library /wp-admin/upload.php3.46 ▲0.2442.22 ▲6.70
/wp-admin/admin.php?page=ntpmx-import-force3.4332.89
NotiPress Plugin /wp-admin/admin.php?page=ntpmx_settings3.4332.01
Configuración /wp-admin/options-general.php?page=ntpmx_settings3.4334.56
/wp-admin/admin.php?page=ntpmx-import3.4030.29

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 1 new table, 23 new options
New tables
wp_ntpmx_contents
New WordPress options
ntpmx_source
ntpmx_qty
ntpmx_show_rows
ntpmx_rich_text
ntpmx_minutes
widget_recent-posts
db_upgraded
ntpmx_product
ntpmx_sku_name
ntpmx_version
...

Browser metrics 75% from 4 tests

NotiPress Noticias: an overview of browser usage
It is time to focus on the following
  • Nodes: You must limit the number of DOM nodes under 25,000 (currently 65,910 on /wp-admin/admin.php?page=ntpmx-import)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.67 ▼0.631.81 ▲0.2445.35 ▲6.42
Dashboard /wp-admin2,224 ▲365.84 ▼0.0797.76 ▼14.7173.80 ▲26.50
Posts /wp-admin/edit.php2,110 ▲211.97 ▼0.0837.03 ▼1.1933.59 ▼2.34
Add New Post /wp-admin/post-new.php1,686 ▲15822.68 ▼0.81716.71 ▲38.4463.63 ▲3.25
Media Library /wp-admin/upload.php1,409 ▲214.20 ▼0.0994.39 ▼5.2178.52 ▲37.98
/wp-admin/admin.php?page=ntpmx-import-force1,5642.8743.1337.14
NotiPress Plugin /wp-admin/admin.php?page=ntpmx_settings9592.0624.7325.92
Configuración /wp-admin/options-general.php?page=ntpmx_settings9592.0323.2425.66
/wp-admin/admin.php?page=ntpmx-import65,91073.86457.79288.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • ntpmx_clean_rows_in_days
    • can_compress_scripts
    • ntpmx_qty
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 101 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ntpmx-import
    • > Notice in wp-content/plugins/notipress-noticias/inc/ntpmx.class.php+369
    Undefined variable: url

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/notipress-noticias/inc/ntpmx-api.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/notipress-noticias/uninstall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/notipress-noticias/inc/ntpmx-contents.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=ntpmx-import
    • > Javascript (warning) in unknown
    /wp-admin/admin.php?page=ntpmx-import 47 Throttling navigation to prevent the browser from hanging. See https://crbug.com/1038223. Command line switch --disable-ipc-flooding-protection can be used to bypass the protection

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: news, mexico, noticias, newsfeed, noticia...

notipress-noticias/notipress-noticias.php 85% from 13 tests

The main file in "NotiPress Noticias" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 248 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,436 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP528181,176
CSS140260

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity180.00
▷ Minimum class complexity180.00
▷ Maximum class complexity180.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods66
▷ Static methods46.06%
▷ Public methods5380.30%
▷ Protected methods00.00%
▷ Private methods1319.70%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo.png8.58KB4.00KB▼ 53.39%
img/notipress-menu.png0.46KB0.69KB0.00%