79% concursos-tap

Code Review | Concursos TAP

WordPress plugin Concursos TAP scored79%from 54 tests.

About plugin

  • Plugin page: concursos-tap
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2015
  • Latest release: Sep 4, 2015
  • Number of updates: 11
  • Update frequency: every 31.7 days
  • Top authors: todoapuestas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /821 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Concursos TAP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.27 ▼1.79
Dashboard /wp-admin3.31 ▲0.0047.31 ▼4.59
Posts /wp-admin/edit.php3.36 ▲0.0047.45 ▼1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.61 ▲2.33
Media Library /wp-admin/upload.php3.23 ▲0.0033.92 ▼2.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
concursos_tap_concursos
db_upgraded
concursos_tap_remote_info
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Concursos TAP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.011.90 ▲0.1043.84 ▼1.24
Dashboard /wp-admin2,195 ▲185.65 ▲0.0184.70 ▼14.1839.88 ▼2.07
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0338.87 ▲0.4132.12 ▼1.80
Add New Post /wp-admin/post-new.php1,550 ▲523.09 ▼0.08673.65 ▼26.9755.02 ▲4.94
Media Library /wp-admin/upload.php1,403 ▼04.26 ▲0.02101.45 ▲0.1843.87 ▼3.47

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • concursos_tap_remote_info
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • concursos_tap_concursos
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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)
Everything seems fine, however 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/concursos-tap/public/views/public.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/concursos-tap/includes/class-widget-concursos.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/concursos-tap/admin/views/information.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/concursos-tap/admin/views/update.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: apuestas, concursos

concursos-tap/concursos-tap.php Passed 13 tests

The main PHP script in "Concursos TAP" version 2.1.2 is automatically included on every request by WordPress
27 characters long description:
View published competitions

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected437 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10144514427
JavaScript28210
CSS2020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.50
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods825.00%
▷ Public methods2578.12%
▷ Protected methods00.00%
▷ Private methods721.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There are no PNG files in this plugin