10% web-en-construccion-indianwebs

Code Review | Web en construccion IndianWebs

WordPress plugin Web en construccion IndianWebs scored10%from 54 tests.

About plugin

  • Plugin page: web-en-construcci...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2015
  • Latest release: Sep 16, 2020
  • Number of updates: 53
  • Update frequency: every 33.2 days
  • Top authors: IndianWebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /17,285 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/web-en-construccion-indianwebs/en_construccion.php+128
    Undefined index: set_opt

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.65ms] Passed 4 tests

Server-side resources used by Web en construccion IndianWebs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.58 ▲0.41
Dashboard /wp-admin3.35 ▲0.0548.78 ▼3.53
Posts /wp-admin/edit.php3.40 ▲0.0550.98 ▲2.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.85 ▼13.82
Media Library /wp-admin/upload.php3.27 ▲0.0539.23 ▲3.16

Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
It is recommended to fix the following issues
  • Illegal file modification detected: 32 files (0.00KB) outside of "wp-content/plugins/web-en-construccion-indianwebs/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/genericons.css"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/instagram.png"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/facebook.png"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site.htm"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/inject_jq.js"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/dashicons.min.css"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/googleplus.png"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/admin-bar.min.css"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/jquery-migrate.min.js"
    • (new file) "wp-content/plugins/web-en-construccion-indianwebs/test \342\200\223 Just another WordPress site_files/css"
    • ...
Filesystem: 50 new files
Database: no new tables, 8 new options
New WordPress options
set_font_color
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
set_bg_color

Browser metrics Passed 4 tests

This is an overview of browser requirements for Web en construccion IndianWebs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4413.21 ▼1.212.00 ▲0.0342.01 ▼4.98
Dashboard /wp-admin2,224 ▲365.86 ▲0.05106.46 ▼13.4562.58 ▲19.63
Posts /wp-admin/edit.php2,101 ▲121.99 ▼0.0241.04 ▲4.7837.09 ▲0.76
Add New Post /wp-admin/post-new.php1,680 ▲16622.37 ▲4.83664.38 ▼19.9338.20 ▼12.17
Media Library /wp-admin/upload.php1,406 ▲184.13 ▼0.04102.64 ▲0.5175.58 ▲31.67

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

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/web-en-construccion-indianwebs/preview.php
    • > /wp-content/plugins/web-en-construccion-indianwebs/trunk/preview.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/web-en-construccion-indianwebs/form.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/web-en-construccion-indianwebs/trunk/form.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/web-en-construccion-indianwebs/trunk/en_construccion.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/web-en-construccion-indianwebs/en_construccion.php:15

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: web en construccin, under construction page, pgina en construccin, indianwebs, coming soon page...

web-en-construccion-indianwebs/en_construccion.php 85% from 13 tests

"Web en construccion IndianWebs" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Git Repository: An alternative Git repository was detected
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("web-en-construccion-indianwebs.php" instead of "en_construccion.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 detected4,142 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS116612103,565
PHP313645476
HTML231364
JSON17027
JavaScript40410

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
30 PNG files occupy 0.55MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/screenshot-1.png149.33KB43.47KB▼ 70.89%
trunk/test – Just another WordPress site_files/googleplus.png0.90KB0.50KB▼ 44.06%
trunk/facebook.png0.67KB0.40KB▼ 40.64%
test – Just another WordPress site_files/facebook.png0.67KB0.40KB▼ 40.64%
googleplus.png0.90KB0.50KB▼ 44.06%