90% stoic-quotes

Code Review | Stoic Quotes

WordPress plugin Stoic Quotes scored90%from 54 tests.

About plugin

  • Plugin page: stoic-quotes
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2023
  • Latest release: Mar 13, 2023
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: hookandhook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /116 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
Install script ran successfully

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

Server-side resources used by Stoic Quotes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.72 ▼2.93
Dashboard /wp-admin3.32 ▲0.0245.35 ▼1.90
Posts /wp-admin/edit.php3.37 ▲0.0146.44 ▲1.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.56 ▼4.56
Media Library /wp-admin/upload.php3.24 ▲0.0134.72 ▲1.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stoic Quotes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7613.73 ▼0.631.74 ▼0.1539.21 ▼1.94
Dashboard /wp-admin2,233 ▲425.80 ▼0.10102.74 ▼0.5039.33 ▼5.51
Posts /wp-admin/edit.php2,092 ▲32.16 ▲0.1539.97 ▲4.5535.62 ▲0.92
Add New Post /wp-admin/post-new.php1,514 ▼517.52 ▼5.82671.00 ▼15.2650.87 ▼3.03
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.0596.96 ▼7.2841.48 ▼6.63

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
4 plugin tags: stoic, quotes, widget, dashboard

stoic-quotes/stoic-quotes.php Passed 13 tests

The main PHP file in "Stoic Quotes" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Get stoic quotes displayed within your WordPress admin dashboard.

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
Success! There were no dangerous files found in this plugin74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25874

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin