83% quietly

Code Review | Quietly

WordPress plugin Quietly scored83%from 54 tests.

About plugin

  • Plugin page: quietly
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: Dec 3, 2015
  • Number of updates: 49
  • Update frequency: every 11.6 days
  • Top authors: quietlyapp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,556 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.68ms] Passed 4 tests

Analyzing server-side resources used by Quietly
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.93 ▲4.81
Dashboard /wp-admin3.43 ▲0.1350.99 ▼0.28
Posts /wp-admin/edit.php3.54 ▲0.1947.32 ▼6.59
Add New Post /wp-admin/post-new.php6.03 ▲0.1581.62 ▼6.83
Media Library /wp-admin/upload.php3.35 ▲0.1239.70 ▲2.99

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

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

Browser metrics Passed 4 tests

Quietly: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.28 ▼1.111.84 ▲0.0545.25 ▲3.21
Dashboard /wp-admin2,226 ▲355.90 ▲1.0199.14 ▼7.8037.22 ▼7.50
Posts /wp-admin/edit.php2,103 ▲142.04 ▲0.0235.52 ▼6.5331.85 ▼2.56
Add New Post /wp-admin/post-new.php1,772 ▲23923.81 ▲0.59709.69 ▲64.0437.36 ▼18.42
Media Library /wp-admin/upload.php1,402 ▲174.16 ▼0.06106.00 ▲7.0644.15 ▲0.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/quietly/admin/views/quietly-content-insert-modal.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'QuietlyOptions' not found in wp-content/plugins/quietly/admin/views/quietly-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/quietly/admin/views/quietly-activation-notice.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 need to be fixed:
  • Tags: There are too many tags (20 tag instead of maximum 10)
Please take inspiration from this readme.txt

quietly/quietly-wordpress.php 85% from 13 tests

The primary PHP file in "Quietly" version 3.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 159 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("quietly.php" instead of "quietly-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,435 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP14109349824
JavaScript567310432
CSS23023179

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.38
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods613.95%
▷ Public methods3786.05%
▷ Protected methods613.95%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.29MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/empty.png0.08KB0.09KB0.00%
images/instruction-3.png103.80KB34.38KB▼ 66.88%
images/activation-notice-bg.png8.77KB3.72KB▼ 57.62%
images/instruction-2.png52.31KB20.50KB▼ 60.82%
images/placeholder-profile.png1.78KB1.91KB0.00%