10% minivel

Code Review | Mi Nivel Lector

WordPress plugin Mi Nivel Lector scored10%from 54 tests.

About plugin

  • Plugin page: minivel
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2012
  • Latest release: Dec 16, 2014
  • Number of updates: 3
  • Update frequency: every 261.7 days
  • Top authors: biblioeteca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /765 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Minivel::activate() should not be called statically

Server metrics [RAM: ▼1.71MB] [CPU: ▼45.82ms] Passed 4 tests

Server-side resources used by Mi Nivel Lector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.09 ▼31.73
Dashboard /wp-admin2.29 ▼1.0110.73 ▼37.63
Posts /wp-admin/edit.php2.29 ▼1.0610.14 ▼37.03
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.48 ▼76.90
Media Library /wp-admin/upload.php2.29 ▼0.9310.93 ▼22.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
minivel_configuracion
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Mi Nivel Lector
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.191.83 ▼0.2544.71 ▼3.35
Dashboard /wp-admin2,206 ▲185.83 ▼0.0699.58 ▼9.1238.50 ▼5.24
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0339.75 ▼1.3936.09 ▲0.31
Add New Post /wp-admin/post-new.php1,545 ▲2518.19 ▼5.03631.44 ▼71.5855.67 ▲0.18
Media Library /wp-admin/upload.php1,391 ▲34.24 ▼0.01101.50 ▼6.6843.28 ▼2.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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 cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Minivel::register() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minivel/minivel.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Ejemplo de como se vería en un blog) image not found
Please take inspiration from this readme.txt

minivel/minivel.php Passed 13 tests

"Mi Nivel Lector" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
Muestra el nivel alcanzado mediante trofeos por un usuario biblioEteca

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1261383

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png29.63KB10.88KB▼ 63.27%