84% maha-salat-times

Code Review | Maha Salat Times

WordPress plugin Maha Salat Times scored84%from 54 tests.

About plugin

  • Plugin page: maha-salat-times
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 20, 2018
  • Latest release: Dec 20, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: qamarramzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.46ms] Passed 4 tests

Server-side resources used by Maha Salat Times
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.19 ▲2.35
Dashboard /wp-admin3.40 ▲0.0948.42 ▼3.83
Posts /wp-admin/edit.php3.45 ▲0.0948.15 ▼0.00
Add New Post /wp-admin/post-new.php5.98 ▲0.0991.90 ▼4.35
Media Library /wp-admin/upload.php3.32 ▲0.0940.74 ▲6.15
MST Options /wp-admin/options-general.php?page=mst_options3.2939.93

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Maha Salat Times
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.24 ▼1.351.68 ▼0.1339.25 ▼5.81
Dashboard /wp-admin2,210 ▲194.83 ▼0.04108.01 ▼9.8138.25 ▼7.33
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0339.36 ▲1.5134.89 ▼1.28
Add New Post /wp-admin/post-new.php1,517 ▼217.50 ▼5.83691.81 ▲30.5056.95 ▲1.66
Media Library /wp-admin/upload.php1,392 ▲44.24 ▼0.00109.02 ▲1.8647.46 ▲3.59
MST Options /wp-admin/options-general.php?page=mst_options1,4122.0523.2133.42

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/maha-salat-times/maha-salat-times.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: prayer, mosque, muslim, display prayer times, salat...

maha-salat-times/maha-salat-times.php 92% from 13 tests

"Maha Salat Times" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 223 characters long)

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
No dangerous file extensions were detected990 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3427179924
CSS111166

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin