74% mylastminutes-api

Code Review | MyLastminutes

WordPress plugin MyLastminutes scored74%from 54 tests.

About plugin

  • Plugin page: mylastminutes-api
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 20, 2020
  • Latest release: Feb 20, 2020
  • Number of updates: 2
  • Update frequency: every 7.0 days
  • Top authors: mylastminutes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /454 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼51.68ms] Passed 4 tests

An overview of server-side resources used by MyLastminutes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.66 ▼36.69
Dashboard /wp-admin2.07 ▼1.235.47 ▼48.67
Posts /wp-admin/edit.php2.07 ▼1.295.87 ▼39.65
Add New Post /wp-admin/post-new.php2.07 ▼3.825.41 ▼81.70
Media Library /wp-admin/upload.php2.07 ▼1.165.79 ▼29.51

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for MyLastminutes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13413.56 ▼0.808.47 ▲6.4642.46 ▼13.67
Dashboard /wp-admin2,210 ▲224.85 ▼1.04103.13 ▼12.8738.56 ▼6.44
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0339.70 ▲1.4633.95 ▼0.56
Add New Post /wp-admin/post-new.php1,518 ▲417.88 ▲0.41656.67 ▼34.9660.98 ▼0.93
Media Library /wp-admin/upload.php1,392 ▲14.29 ▲0.1095.33 ▼3.9442.85 ▼1.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the MyLastminutes-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mylastminutes-api/mylastminutes-api.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (A sample of a list of last minutes in the side bar with logo's. The list is shown in the css style of your website.), #2 (Another sample of last minute list at the top of your sitebar.), #3 (A list of last minutes without a logo, you deside how your lists will be shown), #4 (A screeenshot of the backend where you can create and filter your own lists.)
You can take inspiration from this readme.txt

mylastminutes-api/mylastminutes-api.php Passed 13 tests

"MyLastminutes" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Voeg een vakantie last minute top 10 toe aan je Wordpress website

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
Success! There were no dangerous files found in this plugin72 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS10049
PHP18916
JavaScript1107

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin