83% quran-translations-by-edc

Code Review | Quran Translations

WordPress plugin Quran Translations scored83%from 54 tests.

About plugin

  • Plugin page: quran-translation...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Jul 3, 2014
  • Latest release: Oct 2, 2022
  • Number of updates: 38
  • Update frequency: every 79.3 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.73MB] [CPU: ▲7.08ms] Passed 4 tests

Server-side resources used by Quran Translations
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.48 ▲5.0151.16 ▲9.07
Dashboard /wp-admin8.50 ▲5.1964.52 ▲7.70
Posts /wp-admin/edit.php8.50 ▲5.1463.05 ▲9.77
Add New Post /wp-admin/post-new.php9.45 ▲3.56101.96 ▲1.77
Media Library /wp-admin/upload.php8.50 ▲5.2748.86 ▲12.53

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 17 new options
New WordPress options
show_playlist_tunein
show_playlist_QuickTime
db_upgraded
can_compress_scripts
show_playlist_podcast
playlist_title
show_playlist_txt
quran_playlist_form
show_playlist_realplayer
widget_recent-comments
...

Browser metrics Passed 4 tests

Quran Translations: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.50 ▼0.508.89 ▲7.2241.16 ▼4.66
Dashboard /wp-admin2,213 ▲335.56 ▼0.0786.56 ▼1.7993.05 ▲49.26
Posts /wp-admin/edit.php2,122 ▲221.98 ▼0.0137.80 ▲0.0935.09 ▼0.94
Add New Post /wp-admin/post-new.php1,558 ▲3123.13 ▲0.13681.76 ▼6.2255.00 ▼8.09
Media Library /wp-admin/upload.php1,415 ▲184.15 ▼0.0296.32 ▼22.8974.45 ▲27.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 17 options
    • show_playlist_Winamp
    • show_playlist_pdf
    • show_playlist_txt
    • show_playlist_podcast
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • show_playlist_realplayer
    • show_playlist_QuickTime
    • show_playlist_tunein
    • ...

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 everything seems fine, this is not an exhaustive test

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/quran-translations-by-edc/playlist.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: The official readme.txt might help

quran-translations-by-edc/playlist.php 85% from 13 tests

Analyzing the main PHP file in "Quran Translations" version 1.6
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("quran-translations-by-edc.php" instead of "playlist.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin7,081 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3102357,017
CSS118536
JavaScript13028

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Winamp.png2.22KB1.02KB▼ 53.89%
images/logo.png7.03KB2.54KB▼ 63.96%
images/rss.png1.43KB1.17KB▼ 18.49%
images/Download.png1.49KB0.52KB▼ 65.36%
screenshot-1.png19.45KB9.43KB▼ 51.50%