84% duamatik

Code Review | Duamatik

WordPress plugin Duamatik scored84%from 54 tests.

About plugin

  • Plugin page: duamatik
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3
  • WordPress version: 6.3.1
  • First release: Oct 9, 2015
  • Latest release: Oct 12, 2015
  • Number of updates: 11
  • Update frequency: every 122.4 days
  • Top authors: mehmetizci (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Duamatik
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.87 ▼0.30
Dashboard /wp-admin3.31 ▲0.0159.12 ▲1.04
Posts /wp-admin/edit.php3.37 ▲0.0149.22 ▼6.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.26 ▼9.87
Media Library /wp-admin/upload.php3.24 ▲0.0136.27 ▼2.95

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_duamatik

Browser metrics Passed 4 tests

Checking browser requirements for Duamatik
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.011.69 ▼0.1043.81 ▲2.29
Dashboard /wp-admin2,195 ▲215.59 ▼0.0994.87 ▲3.6942.27 ▼3.42
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0833.45 ▼5.7035.37 ▼2.39
Add New Post /wp-admin/post-new.php1,526 ▼223.72 ▲0.40693.44 ▲31.5654.90 ▼2.98
Media Library /wp-admin/upload.php1,394 ▼64.22 ▼0.02106.78 ▼1.5747.83 ▲0.51

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_duamatik
    • theysaidso_admin_options
    • can_compress_scripts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duamatik/duamatik.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === duamatik === )
You can look at the official readme.txt

duamatik/duamatik.php Passed 13 tests

The main file in "Duamatik" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
106 characters long description:
Bu eklenti, Peygamber efendimiz (S.A.V)'in hadis-i şeriflerinde geçen duaları rastgele göstermektedir.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected160 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1218143
CSS11017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.PNG30.19KB11.48KB▼ 61.98%
screenshot-1.PNG43.81KB16.21KB▼ 62.99%
screenshot-3.PNG16.66KB6.86KB▼ 58.79%