74% teguidores

Code Review | Tegudores

WordPress plugin Tegudores scored74%from 54 tests.

About plugin

  • Plugin page: teguidores
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 2, 2012
  • Latest release: Sep 3, 2012
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: Rdemiguel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,208 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.86ms] Passed 4 tests

An overview of server-side resources used by Tegudores
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.15 ▼37.06
Dashboard /wp-admin2.08 ▼1.2211.55 ▼37.29
Posts /wp-admin/edit.php2.08 ▼1.286.68 ▼49.47
Add New Post /wp-admin/post-new.php2.08 ▼3.815.15 ▼95.60
Media Library /wp-admin/upload.php2.08 ▼1.156.20 ▼28.87

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Tegudores
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.051.84 ▲0.0839.62 ▼4.72
Dashboard /wp-admin2,206 ▲184.85 ▼1.03111.34 ▼3.5741.81 ▼2.04
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0134.99 ▼3.4228.91 ▼4.79
Add New Post /wp-admin/post-new.php1,514 ▼1417.38 ▼1.24677.33 ▲69.6956.22 ▲4.38
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.0098.02 ▼2.4741.30 ▼0.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/teguidores/teguidores.php:168
    • > PHP Fatal error
      Uncaught Error: Call to undefined function obtener_seguidores_de_twitter() in wp-content/plugins/teguidores/visual.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
  • Screenshots: Add an image for screenshot #1 (Widget)
You can look at the official readme.txt

teguidores/teguidores.php Passed 13 tests

"Tegudores" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Muestra de forma visual tus seguidores de Twitter, Facebook y RSS

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
Success! There were no dangerous files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25830109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
imagenes/twitter.png3.89KB2.75KB▼ 29.26%
imagenes/rss.png3.84KB2.75KB▼ 28.50%
imagenes/facebook.png3.66KB2.79KB▼ 23.89%
screenshot-1.png12.51KB6.09KB▼ 51.33%