73% islamic-content-archive-for-truth-seeker

Code Review | Islamic Content Archive For Truth Seeker

WordPress plugin Islamic Content Archive For Truth Seeker scored73%from 54 tests.

About plugin

  • Plugin page: islamic-content-a...
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Dec 4, 2022
  • Number of updates: 20
  • Update frequency: every 118.1 days
  • Top authors: edckwt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /837 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.88ms] Passed 4 tests

A check of server-side resources used by Islamic Content Archive For Truth Seeker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.29 ▲6.20
Dashboard /wp-admin3.41 ▲0.1070.87 ▲23.85
Posts /wp-admin/edit.php3.44 ▲0.0952.38 ▲3.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.80 ▼11.20
Media Library /wp-admin/upload.php3.25 ▲0.0236.22 ▲4.99
Islamic Content Archive For Truth Seeker /wp-admin/options-general.php?page=islamic_content_archive_for_truth_seeker3.2530.28

Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 46 new files
Database: 1 new table, 10 new options
New tables
wp_opicts_categories
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
opicts_language
opicts_version
db_upgraded
theysaidso_admin_options
opicts_cronjobtime
opicts_source

Browser metrics Passed 4 tests

This is an overview of browser requirements for Islamic Content Archive For Truth Seeker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲3413.22 ▼1.191.76 ▼0.1244.18 ▲2.49
Dashboard /wp-admin2,211 ▲234.87 ▼1.04105.65 ▼7.1639.73 ▼4.65
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0043.26 ▲1.7140.21 ▲6.10
Add New Post /wp-admin/post-new.php1,541 ▲2418.08 ▲0.45602.07 ▼90.2059.06 ▲1.73
Media Library /wp-admin/upload.php1,393 ▲54.20 ▲0.0193.68 ▼0.3844.42 ▲1.04
Islamic Content Archive For Truth Seeker /wp-admin/options-general.php?page=islamic_content_archive_for_truth_seeker8392.0224.7832.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_opicts_categories
  • Zombie WordPress options detected upon uninstall: 10 options
    • opicts_source
    • widget_recent-comments
    • opicts_language
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • opicts_cronjobtime
    • theysaidso_admin_options
    • opicts_version

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
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/islamic-content-archive-for-truth-seeker/lib/opic_ts_shortcode.php:9
    • > PHP Warning
      include_once(OPICTS_PLUGIN_PATHTSLIBTSDSts_function.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-content-archive-for-truth-seeker/load.php on line 3
    • > PHP Warning
      Use of undefined constant TSDS - assumed 'TSDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-truth-seeker/load.php on line 2
    • > PHP Warning
      Use of undefined constant TSDS - assumed 'TSDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-truth-seeker/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/islamic-content-archive-for-truth-seeker/index.php:12
    • > PHP Warning
      Use of undefined constant OPICTS_PLUGIN_PATH - assumed 'OPICTS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-truth-seeker/load.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/islamic-content-archive-for-truth-seeker/lib/opic_ts_cronjob.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'app_ts_controlers' not found in wp-content/plugins/islamic-content-archive-for-truth-seeker/controllers/language_ts_controller.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/islamic-content-archive-for-truth-seeker/lib/ts_pluginlifeciclye.php:28
    • > PHP Warning
      Use of undefined constant OPICTS_PLUGIN_PATH - assumed 'OPICTS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-truth-seeker/load.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: Please take inspiration from this readme.txt

islamic-content-archive-for-truth-seeker/index.php 85% from 13 tests

The principal PHP file in "Islamic Content Archive For Truth Seeker" v. 1.3.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("islamic-content-archive-for-truth-seeker.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 154 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
There were no executable files found in this plugin1,211 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP232661101,151
CSS12048
JavaScript10112

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4080.00%
▷ Protected methods48.00%
▷ Private methods612.00%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants20
▷ Global constants20100.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
19 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
style/images/logo/truth_seeker.png22.05KB6.66KB▼ 69.80%
style/images/flags/rom.png0.28KB0.31KB0.00%
style/images/flags/tam.png0.63KB1.03KB0.00%
screenshot-2.png41.67KB15.16KB▼ 63.61%
style/images/flags/ben.png0.55KB0.64KB0.00%