90% estadisticas-web

Code Review | Estadisticas Web

WordPress plugin Estadisticas Web scored90%from 54 tests.

About plugin

  • Plugin page: estadisticas-web
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.1
  • WordPress version: 6.3.1
  • First release: Dec 14, 2015
  • Latest release: Dec 14, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: atareao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Estadisticas Web
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0142.93 ▼0.35
Dashboard /wp-admin3.36 ▼0.0351.05 ▼16.69
Posts /wp-admin/edit.php3.41 ▲0.0150.31 ▼4.05
Add New Post /wp-admin/post-new.php5.94 ▲0.0187.23 ▼4.60
Media Library /wp-admin/upload.php3.28 ▲0.0137.14 ▼2.63
Estadisticas Web /wp-admin/options-general.php?page=awe_plugin3.2531.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Estadisticas Web
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.48 ▲0.1118.96 ▲17.0145.79 ▼13.98
Dashboard /wp-admin2,202 ▲225.61 ▲0.0085.58 ▼4.2941.30 ▲0.28
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0234.86 ▼5.4235.13 ▼1.07
Add New Post /wp-admin/post-new.php1,529 ▲223.37 ▲0.12682.87 ▲16.0355.61 ▼3.03
Media Library /wp-admin/upload.php1,401 ▼24.18 ▼0.0195.24 ▼6.7041.27 ▼4.19
Estadisticas Web /wp-admin/options-general.php?page=awe_plugin8292.0225.1537.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Modified settings panel with Estadisticas Web.), #2 (Estadisticas Web settings page.)
The official readme.txt is a good inspiration

estadisticas-web/estadisticas-web.php Passed 13 tests

The entry point to "Estadisticas Web" version 0.1.1 is a PHP file that has certain tags in its header comment area
48 characters long description:
Estadisticas Web de la mano de Google Analytics.

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
There were no executable files found in this plugin124 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2833124

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot2.png56.05KB23.27KB▼ 58.48%
screenshot1.png8.92KB4.25KB▼ 52.33%