10% islamic-phrases

Code Review | Islamic Phrases

WordPress plugin Islamic Phrases scored10%from 54 tests.

About plugin

  • Plugin page: islamic-phrases
  • Plugin version: 2.12.2015
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2015
  • Latest release: Feb 18, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: darto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,838 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/islamic-phrases/islamic-phrases.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; new_general_setting has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼50.87ms] Passed 4 tests

This is a short check of server-side resources used by Islamic Phrases
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.403.77 ▼35.16
Dashboard /wp-admin2.09 ▼1.225.92 ▼37.99
Posts /wp-admin/edit.php2.09 ▼1.277.25 ▼44.47
Add New Post /wp-admin/post-new.php2.09 ▼3.805.89 ▼85.85
Media Library /wp-admin/upload.php2.09 ▼1.155.54 ▼27.85

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Islamic Phrases
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.134.77 ▲2.9441.26 ▼4.37
Dashboard /wp-admin2,208 ▲204.89 ▼0.03107.86 ▲1.9641.93 ▼1.29
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0040.12 ▲3.7435.13 ▲3.16
Add New Post /wp-admin/post-new.php1,535 ▲1523.26 ▲0.17595.47 ▼136.8360.65 ▼0.89
Media Library /wp-admin/upload.php1,393 ▲24.18 ▼0.0595.04 ▼2.5641.37 ▼7.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/islamic-phrases/islamic-phrases.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; new_general_setting has a deprecated constructor
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/islamic-phrases/islamic-phrases.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: islam, arabic, font, phrases, arabic text...

islamic-phrases/islamic-phrases.php 92% from 13 tests

"Islamic Phrases" version 2.12.2015's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 282 characters long)

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 plugin54 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1162652
CSS1001
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin