78% no-encontrado-404

Code Review | Noencontrado.org 404

WordPress plugin Noencontrado.org 404 scored78%from 54 tests.

About plugin

  • Plugin page: no-encontrado-404
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 13, 2016
  • Latest release: Jul 26, 2018
  • Number of updates: 17
  • Update frequency: every 47.4 days
  • Top authors: ideasquetransforman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Noencontrado.org 404
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.62 ▼3.20
Dashboard /wp-admin3.31 ▲0.0149.80 ▼1.12
Posts /wp-admin/edit.php3.37 ▲0.0146.80 ▼3.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.53 ▲6.33
Media Library /wp-admin/upload.php3.24 ▲0.0138.86 ▲6.49

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Noencontrado.org 404
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲13113.83 ▼0.7927.11 ▲24.9848.64 ▼4.94
Dashboard /wp-admin2,206 ▲184.86 ▼0.06114.20 ▲12.8538.07 ▼2.08
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0140.18 ▲3.9635.13 ▲2.14
Add New Post /wp-admin/post-new.php1,541 ▲823.31 ▼0.11663.66 ▼25.1552.43 ▼11.60
Media Library /wp-admin/upload.php1,385 ▼04.21 ▲0.01102.97 ▼0.5946.37 ▼2.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These 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 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/no-encontrado-404/noencontrado-org.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/no-encontrado-404/views/noencontrado.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: no, argentina, missing children, error 404, noencontrado...

no-encontrado-404/noencontrado-org.php 92% from 13 tests

The primary PHP file in "Noencontrado.org 404" version 1.3.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("no-encontrado-404.php" instead of "noencontrado-org.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin325 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS15511203
PHP37013103
JavaScript210019

PHP code Passed 2 tests

A short 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.15
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
views/img/Social-TW.png2.42KB1.23KB▼ 49.23%
views/img/Social-FB.png0.91KB0.51KB▼ 43.72%
views/img/ne.png21.37KB6.19KB▼ 71.05%