83% queen-inspirations

Code Review | Queen Inspirations

WordPress plugin Queen Inspirations scored83%from 54 tests.

About plugin

  • Plugin page: queen-inspirations
  • Plugin version: 0.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 21, 2016
  • Latest release: Jan 20, 2022
  • Number of updates: 21
  • Update frequency: every 88.4 days
  • Top authors: lukasznowicki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /824 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.31ms] Passed 4 tests

A check of server-side resources used by Queen Inspirations
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.61 ▼1.42
Dashboard /wp-admin3.38 ▲0.0845.89 ▼10.78
Posts /wp-admin/edit.php3.44 ▲0.0851.95 ▼4.63
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.03 ▼16.39
Media Library /wp-admin/upload.php3.31 ▲0.0838.55 ▲1.95

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

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

Browser metrics Passed 4 tests

Queen Inspirations: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.51 ▲0.141.80 ▼0.2643.54 ▲1.84
Dashboard /wp-admin2,201 ▲305.64 ▲0.0084.24 ▼5.3837.56 ▲0.57
Posts /wp-admin/edit.php2,109 ▲92.01 ▼0.0141.34 ▲1.9235.79 ▲0.15
Add New Post /wp-admin/post-new.php1,544 ▲1623.47 ▼0.02643.27 ▼4.4951.94 ▲1.62
Media Library /wp-admin/upload.php1,409 ▲124.24 ▲0.08102.04 ▲2.3343.69 ▼3.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/queen-inspirations/queen.php:368

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (27 tag instead of maximum 10)
The official readme.txt might help

queen-inspirations/queen.php 85% from 13 tests

"Queen Inspirations" version 0.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("queen-inspirations.php" instead of "queen.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 428 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected420 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12030344
HTML12076

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin