84% hola-simpsons

Code Review | Hola Simpsons

WordPress plugin Hola Simpsons scored 84% from 54 tests.

About plugin

  • Plugin page: hola-simpsons
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.2-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2020
  • Latest release: Feb 7, 2021
  • Number of updates: 12
  • Update frequency: every 30.3 days
  • Top authors: pablodiloreto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 578 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.64ms] Passed 4 tests

A check of server-side resources used by Hola Simpsons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.66 ▼7.25
Dashboard /wp-admin3.31 ▲0.0147.54 ▲1.53
Posts /wp-admin/edit.php3.36 ▲0.0142.13 ▼6.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.93 ▼8.23
Media Library /wp-admin/upload.php3.24 ▲0.0133.20 ▼4.91

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Hola Simpsons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.17 ▼1.492.09 ▲0.1245.70 ▲2.01
Dashboard /wp-admin2,212 ▲245.80 ▲0.89100.68 ▼16.8340.33 ▼2.88
Posts /wp-admin/edit.php2,094 ▲51.99 ▲0.0034.13 ▼3.9032.81 ▼0.42
Add New Post /wp-admin/post-new.php1,551 ▲1818.22 ▼5.17686.03 ▲16.8662.37 ▲5.50
Media Library /wp-admin/upload.php1,400 ▲124.18 ▲0.0595.11 ▼19.3740.91 ▼3.70

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hola-simpsons/hola-simpsons.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: hola-simpsons, quotes, los-simpsons, frases, the-simpsons

hola-simpsons/hola-simpsons.php Passed 13 tests

The main PHP script in "Hola Simpsons" version 1.2.4 is automatically included on every request by WordPress
136 characters long description:
The best quotes from 'The Simpsons' in your WordPress Admin area. Las mejores frases de 'Los Simspons' en tu administrador de WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181973

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin