84% psx-daily-quotes

Code Review | PSX Daily Quotes

WordPress plugin PSX Daily Quotes scored84%from 54 tests.

About plugin

  • Plugin page: psx-daily-quotes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9
  • WordPress version: 6.3.1
  • First release: Dec 5, 2018
  • Latest release: Dec 5, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: asarfraz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /484 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by PSX Daily Quotes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0146.33 ▼0.37
Dashboard /wp-admin3.57 ▲0.0152.96 ▼1.06
Posts /wp-admin/edit.php3.69 ▲0.0155.20 ▲3.24
Add New Post /wp-admin/post-new.php6.15 ▲0.0186.96 ▼17.58
Media Library /wp-admin/upload.php3.49 ▲0.0140.15 ▲2.22

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

PSX Daily Quotes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.021.87 ▲0.0849.97 ▲9.66
Dashboard /wp-admin2,195 ▲185.65 ▲0.1098.51 ▲4.7341.99 ▲1.88
Posts /wp-admin/edit.php2,097 ▼02.04 ▲0.0139.35 ▲3.1633.33 ▲0.06
Add New Post /wp-admin/post-new.php1,545 ▲1923.16 ▲5.59654.30 ▼1.9961.53 ▲3.55
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.0296.48 ▼5.5949.14 ▲4.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/psx-daily-quotes/psx-daily-quotes.php:16

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
No plugin tags provided

psx-daily-quotes/psx-daily-quotes.php Passed 13 tests

"PSX Daily Quotes" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
This plugin fethes the PSX data in JSON and renders it on your web page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151444

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.40
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected