74% preloader-quotes

Code Review | Preloader Quotes

WordPress plugin Preloader Quotes scored74%from 54 tests.

About plugin

  • Plugin page: preloader-quotes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-5.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2019
  • Latest release: Jun 9, 2019
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: Bhuvnesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /591 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.10MB] [CPU: ▼3.83ms] Passed 4 tests

This is a short check of server-side resources used by Preloader Quotes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▼0.5723.16 ▼19.30
Dashboard /wp-admin3.36 ▲0.0649.87 ▼2.40
Posts /wp-admin/edit.php3.41 ▲0.0554.34 ▲0.34
Add New Post /wp-admin/post-new.php5.94 ▲0.05104.08 ▲10.17
Media Library /wp-admin/upload.php3.29 ▲0.0540.61 ▲6.03
Preloader Quotes /wp-admin/admin.php?page=preloader-quotes3.2633.57
Mapping /wp-admin/admin.php?page=preloader-quotes-mapping3.3038.17

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/preloader-quotes/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: 2 new tables, 6 new options
New tables
preloader_quotes
preloader_quotes_mapping
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Preloader Quotes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲20813.64 ▼0.737.12 ▲5.5042.79 ▼2.18
Dashboard /wp-admin2,248 ▲514.88 ▼0.95107.32 ▲2.7542.64 ▲4.13
Posts /wp-admin/edit.php2,130 ▲302.01 ▲0.0138.80 ▼1.2035.75 ▲0.04
Add New Post /wp-admin/post-new.php1,567 ▲1722.73 ▼0.40640.42 ▼4.9348.53 ▲4.87
Media Library /wp-admin/upload.php1,427 ▲274.21 ▼0.0194.98 ▼5.8640.79 ▼3.08
Preloader Quotes /wp-admin/admin.php?page=preloader-quotes9302.1423.0764.88
Mapping /wp-admin/admin.php?page=preloader-quotes-mapping9611.9830.6734.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • preloader_quotes_mapping
    • preloader_quotes
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=preloader-quotes
    • > Notice in wp-content/plugins/preloader-quotes/quotes.php+72
    Undefined index: quote_id
    • > GET request to /wp-admin/admin.php?page=preloader-quotes-mapping
    • > Notice in wp-content/plugins/preloader-quotes/mapping.php+85
    Undefined variable: page_idsA
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=preloader-quotes-mapping
    • > Warning in wp-content/plugins/preloader-quotes/mapping.php+100
    in_array() expects parameter 2 to be array, null given
    • > GET request to /wp-admin/admin.php?page=preloader-quotes-mapping
    • > Notice in wp-content/plugins/preloader-quotes/mapping.php+100
    Undefined variable: post_idsA
    • > GET request to /wp-admin/admin.php?page=preloader-quotes-mapping
    • > Notice in wp-content/plugins/preloader-quotes/mapping.php+133
    Undefined variable: random_quotes
    • > GET request to /wp-admin/admin.php?page=preloader-quotes-mapping
    • > Notice in wp-content/plugins/preloader-quotes/mapping.php+137
    Undefined variable: mapping_id

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No plugin tags provided

preloader-quotes/init.php 92% from 13 tests

The entry point to "Preloader Quotes" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("preloader-quotes.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,825 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS343541,271
PHP314315532
JavaScript19522

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin