72% makale-net

Code Review | Makale.net

WordPress plugin Makale.net scored72%from 54 tests.

About plugin

  • Plugin page: makale-net
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2019
  • Latest release: Jan 26, 2019
  • Number of updates: 27
  • Update frequency: every 0.0 days
  • Top authors: makalenet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼2.01ms] Passed 4 tests

An overview of server-side resources used by Makale.net
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2842.48 ▼1.84
Dashboard /wp-admin3.58 ▲0.2847.42 ▲0.28
Posts /wp-admin/edit.php3.70 ▲0.3448.50 ▼0.66
Add New Post /wp-admin/post-new.php6.16 ▲0.2890.45 ▼5.80
Media Library /wp-admin/upload.php3.51 ▲0.2838.56 ▲3.09
Ayarlar /wp-admin/admin.php?page=makale-net_ayarlar3.4632.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Makale.net
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.66 ▼0.941.97 ▲0.0441.90 ▼7.25
Dashboard /wp-admin2,224 ▲364.86 ▼0.99101.24 ▼0.7771.45 ▲30.32
Posts /wp-admin/edit.php2,110 ▲211.98 ▼0.0638.87 ▼0.7836.06 ▼1.53
Add New Post /wp-admin/post-new.php1,684 ▲15022.18 ▼0.78653.56 ▲54.6355.90 ▼0.40
Media Library /wp-admin/upload.php1,400 ▲124.20 ▼0.0297.79 ▲1.4145.05 ▲2.59
Ayarlar /wp-admin/admin.php?page=makale-net_ayarlar1,0132.4330.6526.52

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: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=makale-net_ayarlar
    • > Notice in wp-content/plugins/makale-net/inc/admin-pages/settings.php+17
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× 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/makale-net/inc/plugin-hooks.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/makale-net/inc/generate-admin-pages.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/makale-net/inc/ajax-functions.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/makale-net/inc/register-scripts.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/makale-net/inc/functions.php:148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/makale-net/inc/admin-pages/settings.php:143

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=makale-net_ayarlar
    • > Javascript (severe) in unknown
    /wp-content/plugins/makale-net/assets/admin/js/makale-net.js?ver=1.0.3 766:19 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% 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
10 plugin tags: makale, content, marketing, makalenet, seo...

makale-net/makale-net.php 85% from 13 tests

"Makale.net" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 268 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin10,820 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
SVG30124,482
CSS92541033,632
PHP152111741,432
JavaScript8158571,274

PHP code Passed 2 tests

A brief analysis 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.20
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%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/img/logo.png4.59KB3.52KB▼ 23.16%
assets/admin/img/user.png2.86KB2.62KB▼ 8.59%
assets/admin/img/menu_icon.png3.50KB0.70KB▼ 80.04%