74% randomquotr

Code Review | RandomQuotr

WordPress plugin RandomQuotr scored74%from 54 tests.

About plugin

  • Plugin page: randomquotr
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Dec 4, 2008
  • Latest release: Apr 11, 2018
  • Number of updates: 11
  • Update frequency: every 310.5 days
  • Top authors: loveless (81.82%)jfcby (27.27%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,446 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.94MB] [CPU: ▼38.25ms] Passed 4 tests

Server-side resources used by RandomQuotr
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.00 ▼4.75
Dashboard /wp-admin3.00 ▼0.3023.75 ▼30.61
Posts /wp-admin/edit.php3.00 ▼0.3528.68 ▼25.88
Add New Post /wp-admin/post-new.php3.00 ▼2.8823.71 ▼80.14
Media Library /wp-admin/upload.php3.00 ▼0.2221.78 ▼16.38
RandomQuotr /wp-admin/options-general.php?page=randomquotr/RandomQuotr.php3.0124.68

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

RandomQuotr: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.191.91 ▲0.3041.68 ▲0.64
Dashboard /wp-admin2,202 ▲255.59 ▼0.0885.85 ▼9.6639.17 ▼4.79
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0239.68 ▲3.3736.51 ▲3.62
Add New Post /wp-admin/post-new.php1,529 ▲323.30 ▼0.20606.33 ▼53.6955.89 ▼2.41
Media Library /wp-admin/upload.php1,401 ▲14.18 ▲0.0297.97 ▲2.1347.02 ▲0.26
RandomQuotr /wp-admin/options-general.php?page=randomquotr/RandomQuotr.php9281.9921.6744.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=randomquotr/RandomQuotr.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP Passed 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
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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
3 plugin tags: quotes, content, random

randomquotr/RandomQuotr.php 85% from 13 tests

Analyzing the main PHP file in "RandomQuotr" version 1.0.2
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("randomquotr.php" instead of "RandomQuotr.php")

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
No dangerous file extensions were detected85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182085

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions7
▷ Named functions7100.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
No PNG files were detected