63% risalelerden-secmeler

Code Review | Risalelerden Secmeler

WordPress plugin Risalelerden Secmeler scored63%from 54 tests.

About plugin

  • Plugin page: risalelerden-secm...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5
  • WordPress version: 6.3.1
  • First release: Jan 24, 2013
  • Latest release: Jan 26, 2013
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: hasansarman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /807 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.04ms] Passed 4 tests

Server-side resources used by Risalelerden Secmeler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.51 ▲1.98
Dashboard /wp-admin3.33 ▲0.0347.18 ▼2.58
Posts /wp-admin/edit.php3.38 ▲0.0351.51 ▲0.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.86 ▼12.12
Media Library /wp-admin/upload.php3.26 ▲0.0334.48 ▼1.83
Risalelerden Secmeler /wp-admin/options-general.php?page=risalelerden-secmeler/risale-secmeler.php3.2231.92

Server storage [IO: ▲0.89MB] [DB: ▲0.26MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 2 new tables, 8 new options
New tables
wp_risaleingilizce
wp_risale
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
jal_db_version
widget_recent-posts
can_compress_scripts
jal_db_version2
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Risalelerden Secmeler
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.71 ▲0.501.66 ▲0.1343.68 ▲0.56
Dashboard /wp-admin2,199 ▲225.61 ▼0.0687.47 ▼12.6037.73 ▼2.15
Posts /wp-admin/edit.php2,104 ▲11.98 ▼0.0438.88 ▼4.0835.58 ▼1.16
Add New Post /wp-admin/post-new.php1,531 ▲523.27 ▲0.08660.36 ▼42.1357.10 ▲5.95
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.0398.64 ▼4.3646.08 ▼1.07
Risalelerden Secmeler /wp-admin/options-general.php?page=risalelerden-secmeler/risale-secmeler.php9101.9926.4441.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'hasansarman_delete_plugin_options' not found or invalid function name
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_risale
    • wp_risaleingilizce
  • The uninstall procedure has failed, leaving 8 options in the database
    • jal_db_version2
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • jal_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/risalelerden-secmeler/risale-secmeler.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (An example working image with dynamic words), #2 (how its seen on website)
You can look at the official readme.txt

risalelerden-secmeler/risale-secmeler.php 92% from 13 tests

The principal PHP file in "Risalelerden Secmeler" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("risalelerden-secmeler.php" instead of "risale-secmeler.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,328 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4104362,328

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions14
▷ Named functions14100.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
2 PNG files occupy 0.40MB with 0.26MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.07KB13.42KB▼ 58.15%
screenshot-2.png377.95KB103.90KB▼ 72.51%